WIN32: file naming

Allow single character variations in player names
to remain unique in file names by encoding rather
than substituting.
"plnam one", "plnam_one", and "plnam~one" at the
"Who are you?" prompt get unique filenames after this patch.
This commit is contained in:
nethack.allison
2002-07-21 04:07:32 +00:00
parent 5d040e4da5
commit 03cc2afa2e
3 changed files with 128 additions and 4 deletions

View File

@@ -595,6 +595,8 @@ E void NDECL(makerogueghost);
/* ### files.c ### */
E char *FDECL(fname_encode, (const char *, char, char *, char *, int));
E char *FDECL(fname_decode, (char, char *, char *, int));
E const char *FDECL(fqname, (const char *, int, int));
E FILE *FDECL(fopen_datafile, (const char *,const char *,int));
E boolean FDECL(uptodate, (int,const char *));