1 --- scores.cpp.orig 2007-12-26 19:07:53.000000000 +0000
2 +++ scores.cpp 2007-12-26 19:08:30.000000000 +0000
7 -#define MAELSTROM_SCORES "Maelstrom-Scores"
8 +#define MAELSTROM_SCORES "/var/games/Maelstrom.scores"
9 #define NUM_SCORES 10 // Do not change this!
11 /* Everyone can write to scores file if defined to 0 */
14 memset(&hScores, 0, sizeof(hScores));
16 - scores_src = SDL_RWFromFile(path.Path(MAELSTROM_SCORES), "rb");
17 + scores_src = SDL_RWFromFile(MAELSTROM_SCORES, "rb");
18 if ( scores_src != NULL ) {
19 for ( i=0; i<NUM_SCORES; ++i ) {
20 SDL_RWread(scores_src, hScores[i].name,
23 omask=umask(SCORES_PERMMASK);
25 - scores_src = SDL_RWFromFile(path.Path(MAELSTROM_SCORES), "wb");
26 + scores_src = SDL_RWFromFile(MAELSTROM_SCORES, "wb");
27 if ( scores_src != NULL ) {
28 for ( i=0; i<NUM_SCORES; ++i ) {
29 SDL_RWwrite(scores_src, hScores[i].name,
31 SDL_RWclose(scores_src);
33 error("Warning: Couldn't save scores to %s\n",
34 - path.Path(MAELSTROM_SCORES));