rogue4: add -n option and system savedir
This commit is contained in:
parent
9f62c197cc
commit
18a08fce7e
6 changed files with 53 additions and 8 deletions
|
|
@ -197,6 +197,12 @@ char **envp;
|
|||
|
||||
if ((inf = open(file, 0)) < 0)
|
||||
{
|
||||
if (use_savedir && errno == ENOENT)
|
||||
{
|
||||
/* We're using a system savefile which doesn't exist.
|
||||
This isn't a fatal error, it means start a new game. */
|
||||
return TRUE;
|
||||
}
|
||||
perror(file);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue