+ char * recordfile = "record";
+ char * savefile = "savefile";
+ char * err_x = "A file 'record' exists, but no 'savefile'. If everything "
+ "was in order, both or none would exist. I won't start "
+ "until this is corrected.";
+ if (!access(recordfile, F_OK) && access(savefile, F_OK))
+ {
+ errno = 0;
+ exit_err(1, &world, err_x);
+ }
+ err_x = "A 'savefile' exists, but no file 'record'. If everything "
+ "was in order, both or none would exist. I won't start "
+ "until this is corrected.";
+
+ if (!access(savefile, F_OK) && access(recordfile, F_OK))
+ {
+ errno = 0;
+ exit_err(1, &world, err_x);
+ }
+ char * recordfile_tmp = "record_tmp";
+ char * savefile_tmp = "savefile_tmp";
+ err_x = "A file 'recordfile_tmp' exists, probably from a corrupted "
+ "previous record saving process. To avoid game record "
+ "corruption, I won't start until it is removed or renamed.";
+ exit_err(!access(recordfile_tmp, F_OK), &world, err_x);
+ err_x = "A file 'savefile_tmp' exists, probably from a corrupted "
+ "previous game saving process. To avoid savegame "
+ "corruption, I won't start until it is removed or renamed.";
+ exit_err(!access(savefile_tmp, F_OK), &world, err_x);