diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /games/dodgindiamond2/files/patch-src__main.c | |
parent | editors/fte: update to 20110708 (diff) |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'games/dodgindiamond2/files/patch-src__main.c')
-rw-r--r-- | games/dodgindiamond2/files/patch-src__main.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games/dodgindiamond2/files/patch-src__main.c b/games/dodgindiamond2/files/patch-src__main.c new file mode 100644 index 000000000000..ad1f4590b3a8 --- /dev/null +++ b/games/dodgindiamond2/files/patch-src__main.c @@ -0,0 +1,29 @@ +--- src/main.c.orig Thu Jul 15 15:04:36 2004 ++++ src/main.c Thu Jul 15 15:17:57 2004 +@@ -284,7 +284,7 @@ + sprintf(buffer,"%.500s/.dd2rc",getenv("HOME")); + if(!loadCFG(buffer,&conf)) { + /* if there's no local, use global */ +- sprintf(buffer,"%s/dd2.cfg",DD2_DATA); ++ sprintf(buffer,"%s/dd2.cfg",SYSCONFDIR); + if(!loadCFG(buffer,&conf)) + fprintf(stderr,"unable to read configuration, using defaults\n"); + } +@@ -295,7 +295,7 @@ + #endif + + /* read hi-scores */ +- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); ++ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR); + if(!loadScore(buffer,hiscore)) + fprintf(stderr,"unable to read hi-scores, using defaults\n"); + +@@ -462,7 +462,7 @@ + saveCFG(buffer,&conf); + + /* save hi-scores */ +- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); ++ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR); + if(!saveScore(buffer,hiscore)) + fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n" + ,buffer); |