diff 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
line wrap: on
line diff
--- a/arogue5/save.c	Thu Aug 09 22:58:48 2012 +0000
+++ b/arogue5/save.c	Fri Aug 10 05:16:08 2012 +0000
@@ -152,6 +152,11 @@
 
     if ((inf = open(file, O_RDONLY)) < 0)
     {
+        if (use_savedir && errno == ENOENT)
+        {
+            /* No such game in SAVEDIR */
+            return TRUE;
+        }
 	perror(file);
 	return FALSE;
     }