pkgsrc/games/dd2/patches/patch-ab
obache 3ed2699c53 Update dd2 to 0.2.2.
This release only involves license changes.
- GPL v2 or later, for LGPLv3 compatibility

While here,
 * add DESTDIR support
 * Put score file in ${VARBASE} and use SETGIDGAME. fix PR 38907.
2008-06-14 02:58:24 +00:00

22 lines
731 B
Text

$NetBSD: patch-ab,v 1.1 2008/06/14 02:58:24 obache Exp $
--- src/main.c.orig 2007-08-14 18:59:42.000000000 +0000
+++ src/main.c
@@ -296,7 +296,7 @@ main (int argc, char *argv[])
#endif
/* read hi-scores */
- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
+ sprintf(buffer,"%s/dd2-hiscore",DD2_SCORE);
if(!loadScore(buffer,hiscore))
fprintf(stderr,"unable to read hi-scores, using defaults\n");
@@ -463,7 +463,7 @@ main (int argc, char *argv[])
saveCFG(buffer,&conf);
/* save hi-scores */
- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
+ sprintf(buffer,"%s/dd2-hiscore",DD2_SCORE);
if(!saveScore(buffer,hiscore))
fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n"
,buffer);