--- 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: */