Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51659 Details for
Bug 82564
[EBUILD] roadfighter
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
roadfighter-homedir.patch
roadfighter-homedir.patch (text/plain), 1.80 KB, created by
Christoph Brill (egore) (RESIGNED)
on 2005-02-20 06:12:59 UTC
(
hide
)
Description:
roadfighter-homedir.patch
Filename:
MIME Type:
Creator:
Christoph Brill (egore) (RESIGNED)
Created:
2005-02-20 06:12:59 UTC
Size:
1.80 KB
patch
obsolete
>--- configuration.cpp.orig 2003-08-16 17:37:20.000000000 +0200 >+++ configuration.cpp 2005-02-19 18:57:46.829892440 +0100 >@@ -18,8 +18,11 @@ > { > int a,b,c; > FILE *fp; >- >- fp=fopen("RoadFighter.cfg","r"); >+ char rcfile[256]; >+ >+ snprintf(rcfile,255,"%s/.roadfighterrc",getenv("HOME")); >+ >+ fp=fopen(rcfile,"r"); > if (fp==0) { > default_configuration(); > save_configuration(); >@@ -58,8 +61,10 @@ > void CRoadFighter::save_configuration(void) > { > FILE *fp; >+ char rcfile[256]; > >- fp=fopen("RoadFighter.cfg","w"); >+ snprintf(rcfile,255,"%s/.roadfighterrc",getenv("HOME")); >+ fp=fopen(rcfile,"w"); > if (fp==0) return; > fprintf(fp,"%i %i %i\n",left_key,right_key,fire_key); > fprintf(fp,"%i %i %i\n",left2_key,right2_key,fire2_key); >--- playing_state.cpp.orig 2003-08-16 17:37:22.000000000 +0200 >+++ playing_state.cpp 2005-02-20 14:57:06.140158008 +0100 >@@ -27,14 +27,18 @@ > Resume_playback(); > if (record_replay) { > unsigned int seed; >- replay_fp=fopen("replay.txt","w+"); >+ char replayfile[256]; >+ snprintf(replayfile,255,"%s/.roadfighterreplay",getenv("HOME")); >+ replay_fp=fopen(replayfile,"w+"); > seed=(unsigned int)time(NULL); > fprintf(replay_fp,"%u\n",seed); > srand(seed); > } else { > if (load_replay) { > unsigned int seed; >- replay_fp=fopen("replay.txt","r+"); >+ char replayfile[256]; >+ snprintf(replayfile,255,"%s/.roadfighterreplay",getenv("HOME")); >+ replay_fp=fopen(replayfile,"r+"); > fscanf(replay_fp,"%u",&seed); > srand(seed); > } /* if */ >--- loadmg2.cpp.orig 2003-09-08 21:04:16.000000000 +0200 >+++ loadmg2.cpp 2005-02-20 15:10:11.352787544 +0100 >@@ -26,7 +26,7 @@ > TILE_SOURCE *source; > char tmp[256]; > >- fp=fopen(mapname,"r+"); >+ fp=fopen(mapname,"r"); > if (fp==0) return false; > > /* Load map: */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 82564
:
51585
|
51605
|
51658
| 51659