xrogue: initial support for the -n option.

The scorefile location is also configurable now.
This commit is contained in:
John "Elwin" Edwards 2015-04-22 16:03:00 -04:00
parent dec970210b
commit e35502804b
4 changed files with 39 additions and 2 deletions

View file

@ -151,8 +151,13 @@ char **envp;
if ((inf = open(file, O_RDONLY)) < 0)
{
if (use_savedir && errno == ENOENT)
{
/* No game in progress, so one will be started. */
return TRUE;
}
perror(file);
return(-1);
return FALSE;
}
fflush(stdout);
@ -222,7 +227,7 @@ char **envp;
playit();
/*NOTREACHED*/
return(1);
return FALSE;
}
#define ENCWBSIZ 1024