1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2025-02-02 15:07:27 -05:00

minor changes

This commit is contained in:
untakenstupidnick 2019-04-01 00:08:51 +04:30
parent 9b8bb69b57
commit 0c2e325bc4
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,3 @@
#define PP_SCORES "PipesScores"
#define JW_SCORES "JewelsScores"
#define PP_SCORES "/usr/games/pp_scores"
#define JW_SCORES "/user/games/jw_scores"
//for easier access

View File

@ -40,7 +40,7 @@ byte scorewrite(long score){// only saves the top 10
else{
deforno=0;
if( !(scorefile = fopen(getenv("JW_SCORES"),"r")) ){
fprintf(stderr,"\nNo accessible score files found. You can make an empty text file in %s/%s or set JW_SCORES to such a file to solve this. \n",getenv("HOME"),JW_SCORES);
fprintf(stderr,"\nNo accessible score files found. You can make an empty text file in %s or set JW_SCORES to such a file to solve this. \n",JW_SCORES);
exit(EXIT_SUCCESS);
}
}

View File

@ -51,7 +51,7 @@ byte scorewrite(void){// only saves the top 10, returns the place in the chart
else{
deforno=0;
if( !(scorefile = fopen(getenv("PP_SCORES"),"r")) ){
sprintf(error,"No accessible score files found. You can make an empty text file in %s/%s or set PP_SCORES to such a file to solve this.",getenv("HOME"),PP_SCORES);
sprintf(error,"No accessible score files found. You can make an empty text file in %s or set PP_SCORES to such a file to solve this.",PP_SCORES);
return -1;
}
}