Slightly modify savefile location and prompt
This commit is contained in:
parent
6188fd3be2
commit
b24bc2e606
4 changed files with 13 additions and 7 deletions
|
|
@ -77,9 +77,9 @@ char **envp;
|
|||
strncpy(whoami, argv[2], MAXSTR - 1);
|
||||
whoami[MAXSTR - 1] = '\0'; /* insurance */
|
||||
use_savedir = TRUE;
|
||||
/* look for savefile at SAVEDIR/UIDplayername.r4sav */
|
||||
if (snprintf(file_name, MAXSTR, "%s%d%.10s.r4sav", SAVEDIR, md_getuid(),
|
||||
whoami) >= MAXSTR)
|
||||
/* look for savefile at SAVEDIR/UID-playername.r4sav */
|
||||
if (snprintf(file_name, MAXSTR, "%s%d-%.10s.r4sav", SAVEDIR,
|
||||
md_getuid(), whoami) >= MAXSTR)
|
||||
{
|
||||
/* Name is too long- this shouldn't happen */
|
||||
strcpy(file_name, "rogue4.save");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue