home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / xblockbuster / patch3.sh / xbb.patch3 < prev   
Encoding:
Text File  |  1995-05-03  |  7.5 KB  |  230 lines

  1. diff -c xblockbuster1.02/CHANGES xblockbuster1.03/CHANGES
  2. *** xblockbuster1.02/CHANGES    Fri Apr  2 20:44:44 1993
  3. --- xblockbuster1.03/CHANGES    Sat Apr 17 23:07:02 1993
  4. ***************
  5. *** 1,3 ****
  6. --- 1,10 ----
  7. + Changes from v1.02 to v1.03
  8. +   file locking implemented for the scorefile.  By Gerald Vogt <vogt@isa.de>
  9. +   this adds the files lock.c and lock.h
  10. +   added S_ISDIR macro to xblockbuster.c for Mips machines
  11.   Changes from v1.01 to v1.02
  12.   
  13.     rand and srand are now used as defaults on HP machines.
  14. diff -c xblockbuster1.02/Imakefile xblockbuster1.03/Imakefile
  15. *** xblockbuster1.02/Imakefile    Fri Apr  2 23:13:07 1993
  16. --- xblockbuster1.03/Imakefile    Sat Apr 17 20:21:14 1993
  17. ***************
  18. *** 17,22 ****
  19. --- 17,23 ----
  20.   #ifndef StageDir
  21.   #define StageDir $(LIBDIR)/xblockbuster
  22.   #endif
  23. + CFLAGS += -Wall
  24.   
  25.   STAGEDIR = StageDir
  26.   
  27. ***************
  28. *** 25,34 ****
  29.           DEFINES = -DSTAGEDIR=\"$(STAGEDIR)\"
  30.           DEPLIBS = $(DEPXLIB)
  31.   LOCAL_LIBRARIES = $(XLIB)
  32. !           SRCS1 = balls_pallet.c bricks.c deflection.c save.c score.c stage.c \
  33. !                   xblockbuster.c
  34. !           OBJS1 = balls_pallet.o bricks.o deflection.o save.o score.o stage.o \
  35. !                   xblockbuster.o
  36.             SRCS2 = stagemm.c
  37.             OBJS2 = stagemm.o
  38.          PROGRAMS = xblockbuster stagemm
  39. --- 26,35 ----
  40.           DEFINES = -DSTAGEDIR=\"$(STAGEDIR)\"
  41.           DEPLIBS = $(DEPXLIB)
  42.   LOCAL_LIBRARIES = $(XLIB)
  43. !           SRCS1 = balls_pallet.c bricks.c deflection.c lock.c save.c score.c \
  44. !                   stage.c xblockbuster.c
  45. !           OBJS1 = balls_pallet.o bricks.o deflection.o lock.o save.o score.o \
  46. !                   stage.o xblockbuster.o
  47.             SRCS2 = stagemm.c
  48.             OBJS2 = stagemm.o
  49.          PROGRAMS = xblockbuster stagemm
  50. Only in xblockbuster1.03: Makefile
  51. diff -c xblockbuster1.02/Makefile.noIm xblockbuster1.03/Makefile.noIm
  52. *** xblockbuster1.02/Makefile.noIm    Sat Mar 20 03:11:41 1993
  53. --- xblockbuster1.03/Makefile.noIm    Sat Apr 17 19:27:01 1993
  54. ***************
  55. *** 1,10 ****
  56.   #
  57.   # Makefile for XBlockbuster
  58.   #
  59. ! HDRS= xblockbuster.h patchlevel.h
  60. ! SRCS = balls_pallet.c bricks.c deflection.c save.c score.c stage.c \
  61.       xblockbuster.c 
  62. ! OBJS = balls_pallet.o bricks.o deflection.o save.o score.o stage.o \
  63.       xblockbuster.o 
  64.   
  65.   # Where you want the executable installed
  66. --- 1,10 ----
  67.   #
  68.   # Makefile for XBlockbuster
  69.   #
  70. ! HDRS= xblockbuster.h patchlevel.h lock.h
  71. ! SRCS = balls_pallet.c bricks.c deflection.c lock.c save.c score.c stage.c \
  72.       xblockbuster.c 
  73. ! OBJS = balls_pallet.o bricks.o deflection.o lock.o save.o score.o stage.o \
  74.       xblockbuster.o 
  75.   
  76.   # Where you want the executable installed
  77. diff -c xblockbuster1.02/README xblockbuster1.03/README
  78. *** xblockbuster1.02/README    Tue Mar 30 20:19:06 1993
  79. --- xblockbuster1.03/README    Sat Apr 17 19:33:05 1993
  80. ***************
  81. *** 97,110 ****
  82.   
  83.   BUGS/TODO:
  84.   
  85. -  I have gotten several reports of the pallette not appearing on the
  86. - screen, yet the balls are appearing (both use the gc_xor structure, so
  87. - I don't have any idea what the problem is, and can't reproduce it
  88. - myself.)  This problem seems to be happening more on BW systems.  My
  89. - only thought right now is perhaps the window wasn't made the proper size,
  90. - so the bottom is cut off.  But even then, if the pointer is moved near
  91. - the top of the window, the side crosshairs should still appear.
  92.    A nice opening screen, showing the bricks (with proper coloring, if 
  93.   applicable), along with descriptions of what each brick does.
  94.   
  95. --- 97,102 ----
  96. Common subdirectories: xblockbuster1.02/SKELS and xblockbuster1.03/SKELS
  97. Common subdirectories: xblockbuster1.02/STAGES and xblockbuster1.03/STAGES
  98. Common subdirectories: xblockbuster1.02/STAGES.try and xblockbuster1.03/STAGES.try
  99. Common subdirectories: xblockbuster1.02/STAGES.wacko and xblockbuster1.03/STAGES.wacko
  100. Common subdirectories: xblockbuster1.02/icons and xblockbuster1.03/icons
  101. Only in xblockbuster1.03: lock.c
  102. Only in xblockbuster1.03: lock.h
  103. diff -c xblockbuster1.02/patchlevel.h xblockbuster1.03/patchlevel.h
  104. *** xblockbuster1.02/patchlevel.h    Fri Mar 26 01:21:39 1993
  105. --- xblockbuster1.03/patchlevel.h    Sat Apr 17 19:39:55 1993
  106. ***************
  107. *** 1 ****
  108. ! #define VERSION    "XBlockBuster 1.02"
  109. --- 1 ----
  110. ! #define VERSION    "XBlockBuster 1.03"
  111. diff -c xblockbuster1.02/score.c xblockbuster1.03/score.c
  112. *** xblockbuster1.02/score.c    Wed Mar 24 18:46:51 1993
  113. --- xblockbuster1.03/score.c    Sat Apr 17 20:30:49 1993
  114. ***************
  115. *** 17,22 ****
  116. --- 17,23 ----
  117.    */
  118.   
  119.   #include "xblockbuster.h"
  120. + #include "lock.h"
  121.   
  122.   struct Score {
  123.       int             score, balls_left;
  124. ***************
  125. *** 52,61 ****
  126. --- 53,74 ----
  127.   
  128.       /* read the score file into the array */
  129.       sprintf( buf, SCOREFILE, playground );
  130. + #ifdef LOCK_FILE
  131. +     if (LockScoreFile(buf) == -1)
  132. +       exit(1);
  133. + #endif
  134.       if ( !( fd = fopen(buf, "r+" ) ) ) {
  135.           perror( "No score file" );
  136.           exit( 1 );
  137.       }
  138. + #ifdef LOCK_FCNTL
  139. +     if (LockFile(fileno(fd)) == -1)
  140. +       exit(1);
  141. + #endif
  142.       for ( s = 0; s < NB_SCORES; s++ ) {
  143.           fscanf( fd, "%d:%d:%s\n", &score_board[s].score,
  144.               &score_board[s].balls_left,
  145. ***************
  146. *** 109,115 ****
  147. --- 122,137 ----
  148.                    score_board[s].login );
  149.           }
  150.       }
  151. + #ifdef LOCK_FCNTL
  152. +     UnlockFile(fileno(fd));
  153. + #endif
  154.       fclose( fd );
  155. + #ifdef LOCK_FILE
  156. +     UnlockScoreFile(buf);
  157. + #endif
  158.   
  159.       /* show score board */
  160.       center_text( 0, "Top Scores" );
  161. Only in xblockbuster1.02: stagemm.o
  162. diff -c xblockbuster1.02/xblockbuster.c xblockbuster1.03/xblockbuster.c
  163. *** xblockbuster1.02/xblockbuster.c    Wed Mar 31 19:27:01 1993
  164. --- xblockbuster1.03/xblockbuster.c    Sat Apr 17 23:06:10 1993
  165. ***************
  166. *** 30,35 ****
  167. --- 30,40 ----
  168.   static char *disp=NULL, *play="default";
  169.   static int winposx=0, winposy=0,geomask,no_pause=FALSE;
  170.   
  171. + #ifdef Mips
  172. + #define S_ISDIR(m)      (((m)&S_IFMT) == S_IFDIR)
  173. + #endif
  174.   void event_handler()
  175.   {
  176.       XEvent    e;
  177. diff -c xblockbuster1.02/xblockbuster.h xblockbuster1.03/xblockbuster.h
  178. *** xblockbuster1.02/xblockbuster.h    Tue Mar 30 20:11:59 1993
  179. --- xblockbuster1.03/xblockbuster.h    Sat Apr 17 20:47:36 1993
  180. ***************
  181. *** 20,25 ****
  182. --- 20,36 ----
  183.    * SYSTEM DEPENDENT OPTIONS
  184.    */
  185.   
  186. + /* NOTE: only one of LOCK_FCTNL or LOCK_FILE should be defined. */
  187. + /* If neither are defined, no file locking will be done */
  188. + /* Use fcntl to lock the scorefile */
  189. + #define LOCK_FCNTL
  190. + /* Use a different locking method for the score file.  Maybe try it
  191. +   if fcntl does not work.  If you do use LOCK_FILE, the STAGES
  192. + directories themselves need to be publicly writable, as a lockfile
  193. + is written in them */
  194. + /*#define LOCK_FILE*/
  195.   /* STAGEDIR should, in general, be defined in the (I)Makefile */
  196.   #ifndef STAGEDIR
  197.   #define STAGEDIR    "/usr/games/lib/blockbuster"
  198. diff -c xblockbuster1.02/xblockbuster.man xblockbuster1.03/xblockbuster.man
  199. *** xblockbuster1.02/xblockbuster.man    Wed Mar 31 19:43:21 1993
  200. --- xblockbuster1.03/xblockbuster.man    Sat Apr 17 19:33:47 1993
  201. ***************
  202. *** 283,287 ****
  203.   the bricks it was unable to color.  If using alternate bricks, it can be
  204.   difficult to differentiate bricks without the coloring.
  205.   .LP
  206. ! None of the standard command line X arguements are interperted.  Likewise,
  207. ! none of the standard X defaults (in the .Xdefaults file) are used.
  208. --- 283,288 ----
  209.   the bricks it was unable to color.  If using alternate bricks, it can be
  210.   difficult to differentiate bricks without the coloring.
  211.   .LP
  212. ! Only a few of the standard command line X arguements are interperted.
  213. ! Likewise,
  214. ! only a few of the standard X defaults (in the .Xdefaults file) are used.
  215.