# HG changeset patch # User John "Elwin" Edwards # Date 1431365796 14400 # Node ID 8ae3ffd6c6e744282eedb66467919e6cc77fdf7e # Parent b786053d2f37fa8417182b55f5c9fa8978215fdb arogue7: make the scorefile location configurable. diff -r b786053d2f37 -r 8ae3ffd6c6e7 arogue7/mach_dep.h --- a/arogue7/mach_dep.h Fri May 08 16:45:41 2015 -0400 +++ b/arogue7/mach_dep.h Mon May 11 13:36:36 2015 -0400 @@ -41,7 +41,7 @@ * where scorefile should live */ #ifndef SCOREFILE -#define SCOREFILE "/usr/games/lib/rogue_roll" +#define SCOREFILE "arogue7.scr" #endif /* diff -r b786053d2f37 -r 8ae3ffd6c6e7 arogue7/main.c --- a/arogue7/main.c Fri May 08 16:45:41 2015 -0400 +++ b/arogue7/main.c Mon May 11 13:36:36 2015 -0400 @@ -55,12 +55,17 @@ strcat(file_name, "arogue77.sav"); /* Get default score file */ +#ifdef SCOREFILE + strncpy(score_file, SCOREFILE, LINELEN); + score_file[LINELEN-1] = '\0'; +#else strcpy(score_file, md_getroguedir()); if (*score_file) strcat(score_file,"/"); strcat(score_file,"arogue77.scr"); +#endif if ((env = getenv("ROGUEOPTS")) != NULL) parse_opts(env);