r10538 - in packages/trunk/donkey-bolonkey/debian: . patches
Evgeni Golov
evgeni at alioth.debian.org
Wed Nov 18 17:32:08 UTC 2009
Author: evgeni
Date: 2009-11-18 17:32:08 +0000 (Wed, 18 Nov 2009)
New Revision: 10538
Added:
packages/trunk/donkey-bolonkey/debian/patches/03_fix_hiscorepath.patch
Modified:
packages/trunk/donkey-bolonkey/debian/changelog
packages/trunk/donkey-bolonkey/debian/patches/series
Log:
Save hiscores to ~/.donkey-bolonkey.hi
Modified: packages/trunk/donkey-bolonkey/debian/changelog
===================================================================
--- packages/trunk/donkey-bolonkey/debian/changelog 2009-11-18 17:22:41 UTC (rev 10537)
+++ packages/trunk/donkey-bolonkey/debian/changelog 2009-11-18 17:32:08 UTC (rev 10538)
@@ -12,8 +12,12 @@
* Refresh patches against new source.
* Bump Standards Version to 3.8.1.
- -- Barry deFreese <bdefreese at debian.org> Thu, 19 Mar 2009 15:16:53 -0400
+ [ Evgeni Golov ]
+ * Save hiscores to ~/.donkey-bolonkey.hi
+ Closes: #496005
+ -- Barry deFreese <bdefreese at debian.org> Wed, 18 Nov 2009 18:30:26 +0100
+
donkey-bolonkey (2001-5.1) unstable; urgency=medium
* Fix data path (Closes: #488433)
Added: packages/trunk/donkey-bolonkey/debian/patches/03_fix_hiscorepath.patch
===================================================================
--- packages/trunk/donkey-bolonkey/debian/patches/03_fix_hiscorepath.patch (rev 0)
+++ packages/trunk/donkey-bolonkey/debian/patches/03_fix_hiscorepath.patch 2009-11-18 17:32:08 UTC (rev 10538)
@@ -0,0 +1,53 @@
+Description: Save hiscrores to ~/.donkey-bolonkey.hi
+ They were saved to dkbk.hi in the current directory.
+Bug-Debian: http://bugs.debian.org/496005
+Forwarded: no
+Author: Evgeni Golov <evgeni at debian.org>
+Last-Update: 2009-11-18
+
+Index: donkey-bolonkey-2001/hiscore.c
+===================================================================
+--- donkey-bolonkey-2001.orig/hiscore.c 2009-11-17 19:10:45.000000000 +0100
++++ donkey-bolonkey-2001/hiscore.c 2009-11-17 20:44:12.000000000 +0100
+@@ -54,10 +54,19 @@
+ void init_hiscore()
+ {
+ char buf[32];
++ char *home_path;
++ char hiscore_path[4096];
+ int i;
+
++ home_path = getenv("HOME");
++ if (home_path != NULL)
++ snprintf(hiscore_path, sizeof(hiscore_path)-1, "%s/.donkey-bolonkey.hi", home_path);
++ else
++ snprintf(hiscore_path, sizeof(hiscore_path)-1, ".donkey-bolonkey.hi");
++ hiscore_path[4095]=0;
++
+ push_config_state();
+- set_config_file("dkbk.hi");
++ set_config_file(hiscore_path);
+
+ for (i=0; i<MAX_HISCORES; i++) {
+ sprintf(buf, "name%d", i+1);
+@@ -84,10 +93,19 @@
+ void save_hiscore()
+ {
+ char buf[32];
++ char *home_path;
++ char hiscore_path[4096];
+ int i;
+
++ home_path = getenv("HOME");
++ if (home_path != NULL)
++ snprintf(hiscore_path, sizeof(hiscore_path)-1, "%s/.donkey-bolonkey.hi", home_path);
++ else
++ snprintf(hiscore_path, sizeof(hiscore_path)-1, ".donkey-bolonkey.hi");
++ hiscore_path[4095]=0;
++
+ push_config_state();
+- set_config_file("dkbk.hi");
++ set_config_file(hiscore_path);
+
+ for (i=0; i<MAX_HISCORES; i++) {
+ sprintf(buf, "name%d", i+1);
Modified: packages/trunk/donkey-bolonkey/debian/patches/series
===================================================================
--- packages/trunk/donkey-bolonkey/debian/patches/series 2009-11-18 17:22:41 UTC (rev 10537)
+++ packages/trunk/donkey-bolonkey/debian/patches/series 2009-11-18 17:32:08 UTC (rev 10538)
@@ -1,3 +1,3 @@
-
01_remove_strip.patch
02_fix_datapath.patch
+03_fix_hiscorepath.patch
More information about the Pkg-games-commits
mailing list