rogue4: add -n option and system savedir

This commit is contained in:
John "Elwin" Edwards 2009-10-31 01:51:52 +00:00
parent 9f62c197cc
commit 18a08fce7e
6 changed files with 53 additions and 8 deletions

View file

@ -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;
}