xrogue: initial support for the -n option.
The scorefile location is also configurable now.
This commit is contained in:
parent
dec970210b
commit
e35502804b
4 changed files with 39 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue