r6602 - in packages/trunk/biniax2/debian: . patches

Miriam Ruiz baby-guest at alioth.debian.org
Thu Apr 17 11:44:56 UTC 2008


Author: baby-guest
Date: 2008-04-17 11:44:56 +0000 (Thu, 17 Apr 2008)
New Revision: 6602

Modified:
   packages/trunk/biniax2/debian/biniax2.6
   packages/trunk/biniax2/debian/patches/sound.patch
Log:
Put user configuration files in a directory: $HOME/.biniax2/



Modified: packages/trunk/biniax2/debian/biniax2.6
===================================================================
--- packages/trunk/biniax2/debian/biniax2.6	2008-04-16 21:56:28 UTC (rev 6601)
+++ packages/trunk/biniax2/debian/biniax2.6	2008-04-17 11:44:56 UTC (rev 6602)
@@ -8,7 +8,7 @@
 
 Playing the game is really simple: you move a single tile around a field of pairs of tiles. You can remove a pair from the game board if one of the tiles is similar to your own. When you do that, your tile changes into the other tile that was part of the pair you just removed. You have to do this quickly, otherwise the pairs will pile on top of you and take you to the Game Over screen.
 .SH "CONFIGURATION"
-User Configuration File: ~/.biniax2
+User Configuration File: ~/.biniax2/config
 .br 
 .TP 
 User Configuration Example:

Modified: packages/trunk/biniax2/debian/patches/sound.patch
===================================================================
--- packages/trunk/biniax2/debian/patches/sound.patch	2008-04-16 21:56:28 UTC (rev 6601)
+++ packages/trunk/biniax2/debian/patches/sound.patch	2008-04-17 11:44:56 UTC (rev 6602)
@@ -3,8 +3,8 @@
 
 Index: biniax2/biniax.c
 ===================================================================
---- biniax2.orig/biniax.c	2008-04-15 16:20:53.000000000 +0000
-+++ biniax2/biniax.c	2008-04-15 16:25:47.000000000 +0000
+--- biniax2.orig/biniax.c	2008-04-17 11:40:14.000000000 +0000
++++ biniax2/biniax.c	2008-04-17 11:40:59.000000000 +0000
 @@ -100,13 +100,27 @@
  	cfgInit();
  	hofInit();
@@ -36,8 +36,8 @@
  	SHOW INITIAL WELCOME SCREEN                                                
 Index: biniax2/desktop/cfg.c
 ===================================================================
---- biniax2.orig/desktop/cfg.c	2008-04-15 16:20:53.000000000 +0000
-+++ biniax2/desktop/cfg.c	2008-04-15 16:23:16.000000000 +0000
+--- biniax2.orig/desktop/cfg.c	2008-04-17 11:40:14.000000000 +0000
++++ biniax2/desktop/cfg.c	2008-04-17 11:44:55.000000000 +0000
 @@ -30,6 +30,17 @@
  
  #include "inc.h"
@@ -56,7 +56,7 @@
  
  /******************************************************************************
  FUNCTIONS
-@@ -52,13 +63,38 @@
+@@ -52,13 +63,40 @@
  	char	buffer[ _Cfg_Buffer ];
  	int		nTemp;
  
@@ -74,12 +74,14 @@
 +			return BNX_FALSE;
 +		}
 +	}
-+	if (strlen(home) > PATH_MAX - sizeof("/.biniax2"))
++	if (strlen(home) > PATH_MAX - sizeof("/.biniax2/config"))
 +	{
 +		fprintf(stderr, "$HOME is excessively long.n");
 +		return BNX_FALSE;
 +	}
-+	snprintf(filename, sizeof(filename), "%s/.biniax2", home);
++	snprintf(file, sizeof(file), "%s/.biniax2", home);
++	mkdir(file, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0;
++	strncat(file, "/config", sizeof(file)-1);
 +#else
 +	char filename[] = "./config.bnx2";
 +#endif
@@ -96,7 +98,7 @@
  		return BNX_FALSE;
  	}
  
-@@ -76,6 +112,10 @@
+@@ -76,6 +114,10 @@
  
  	fclose( f );
  
@@ -107,7 +109,7 @@
  	return BNX_TRUE;
  }
  
-@@ -84,12 +124,28 @@
+@@ -84,12 +126,28 @@
  	return _Cfg.sound;
  }
  
@@ -138,8 +140,8 @@
 +}
 Index: biniax2/desktop/cfg.h
 ===================================================================
---- biniax2.orig/desktop/cfg.h	2008-04-15 16:23:30.000000000 +0000
-+++ biniax2/desktop/cfg.h	2008-04-15 16:24:10.000000000 +0000
+--- biniax2.orig/desktop/cfg.h	2008-04-17 11:40:14.000000000 +0000
++++ biniax2/desktop/cfg.h	2008-04-17 11:40:59.000000000 +0000
 @@ -43,4 +43,8 @@
  BNX_BOOL cfgGetMusic();
  BNX_BOOL cfgGetFullscreen();




More information about the Pkg-games-commits mailing list