arogue5: add the savedir feature.
This commit is contained in:
parent
14fad3b319
commit
38a8534eb5
5 changed files with 40 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue