arogue5: add the savedir feature.

This commit is contained in:
John "Elwin" Edwards 2012-08-10 05:16:08 +00:00
parent 14fad3b319
commit 38a8534eb5
5 changed files with 40 additions and 4 deletions

View file

@ -152,6 +152,11 @@ char **envp;
if ((inf = open(file, O_RDONLY)) < 0)
{
if (use_savedir && errno == ENOENT)
{
/* No such game in SAVEDIR */
return TRUE;
}
perror(file);
return FALSE;
}