Renamed levels.dat to map.dat
This commit is contained in:
parent
ae07b28313
commit
9ae8702bee
5
defs.h
5
defs.h
|
@ -3,6 +3,11 @@
|
|||
|
||||
#include <SDL_mixer.h>
|
||||
|
||||
|
||||
/* files */
|
||||
#define FILE_LEVELMAP "map.dat"
|
||||
|
||||
|
||||
/* Macros */
|
||||
//#define OPENGL
|
||||
|
||||
|
|
2
edit.c
2
edit.c
|
@ -114,7 +114,7 @@ int main (int argc, char **argv) {
|
|||
|
||||
|
||||
if (loadlevellist()) {
|
||||
printf("Error loading level list from levels.dat.\n");
|
||||
printf("Error loading level list from %s.\n", FILE_LEVELMAP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
2
rc.c
2
rc.c
|
@ -272,7 +272,7 @@ int main (int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (loadlevellist()) {
|
||||
printf("Error loading level list from levels.dat.\n");
|
||||
printf("Error loading level list from %s.\n",FILE_LEVELMAP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
8
shared.c
8
shared.c
|
@ -2941,10 +2941,10 @@ int savelevellist(void) {
|
|||
char filename[BUFLEN];
|
||||
FILE *f;
|
||||
int i;
|
||||
sprintf(filename, "%s/levels.dat",datadir);
|
||||
sprintf(filename, "%s/%s",datadir,FILE_LEVELMAP);
|
||||
f = fopen(filename,"w");
|
||||
if (!f) {
|
||||
printf("error writing to levels.dat\n");
|
||||
printf("error writing to %s\n",FILE_LEVELMAP);
|
||||
return B_FALSE;
|
||||
}
|
||||
|
||||
|
@ -2964,10 +2964,10 @@ int loadlevellist(void) {
|
|||
char buf[BUFLEN];
|
||||
char *p;
|
||||
|
||||
sprintf(filename, "%s/levels.dat",datadir);
|
||||
sprintf(filename, "%s/%s",datadir, FILE_LEVELMAP);
|
||||
f = fopen(filename,"r");
|
||||
if (!f) {
|
||||
printf("Error opening levels data file\n");
|
||||
printf("Error opening %s\n",FILE_LEVELMAP);
|
||||
exit(1);
|
||||
}
|
||||
// format is:
|
||||
|
|
Loading…
Reference in New Issue