updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / maelstrom / maelstrom-scores.patch
blob3d76cf55eb85e5f7f325c9bfe9904ea00651f95a
1 --- scores.cpp.orig 2007-12-26 19:07:53.000000000 +0000
2 +++ scores.cpp 2007-12-26 19:08:30.000000000 +0000
3 @@ -15,7 +15,7 @@
4 #include "load.h"
5 #include "dialog.h"
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 */
12 @@ -44,7 +44,7 @@
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,
21 @@ -72,7 +72,7 @@
22 #ifdef unix
23 omask=umask(SCORES_PERMMASK);
24 #endif
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,
30 @@ -83,7 +83,7 @@
31 SDL_RWclose(scores_src);
32 } else {
33 error("Warning: Couldn't save scores to %s\n",
34 - path.Path(MAELSTROM_SCORES));
35 + MAELSTROM_SCORES);
37 #ifdef unix
38 umask(omask);