/[packages]/cauldron/maelstrom/current/SOURCES/Maelstrom-3.0.6-scorefile.patch
ViewVC logotype

Contents of /cauldron/maelstrom/current/SOURCES/Maelstrom-3.0.6-scorefile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 204976 - (show annotations) (download)
Sun Feb 5 20:13:22 2012 UTC (12 years, 2 months ago) by luigiwalser
File size: 1189 byte(s)
- rename Maelstrom to maelstrom
1 --- scores.cpp.scores 2000-09-24 19:55:39.000000000 +0200
2 +++ scores.cpp 2003-03-06 17:15:47.000000000 +0100
3 @@ -15,7 +15,7 @@
4 #include "load.h"
5 #include "dialog.h"
6
7 -#define MAELSTROM_SCORES "Maelstrom-Scores"
8 +#define MAELSTROM_SCORES "/var/lib/games/Maelstrom-Scores"
9 #define NUM_SCORES 10 // Do not change this!
10
11 /* Everyone can write to scores file if defined to 0 */
12 @@ -44,7 +44,7 @@
13 }
14 memset(&hScores, 0, sizeof(hScores));
15
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);
36 }
37 #ifdef unix
38 umask(omask);

  ViewVC Help
Powered by ViewVC 1.1.30