comparison arogue5/save.c @ 64:a98834ce7e04

arogue5: add the savedir feature.
author elwin
date Fri, 10 Aug 2012 05:16:08 +0000
parents 0ed67132cf10
children c56f672244f4
comparison
equal deleted inserted replaced
63:0ed67132cf10 64:a98834ce7e04
150 if (strcmp(file, "-r") == 0) 150 if (strcmp(file, "-r") == 0)
151 file = file_name; 151 file = file_name;
152 152
153 if ((inf = open(file, O_RDONLY)) < 0) 153 if ((inf = open(file, O_RDONLY)) < 0)
154 { 154 {
155 if (use_savedir && errno == ENOENT)
156 {
157 /* No such game in SAVEDIR */
158 return TRUE;
159 }
155 perror(file); 160 perror(file);
156 return FALSE; 161 return FALSE;
157 } 162 }
158 163
159 fflush(stdout); 164 fflush(stdout);