nuke Qexpand_squiggle. instead, expand ~ to $HOME on qfs initialization and

cache the value.

don't call Qopen directly in the engine. instead call QFS_Open (generic) or
QFS_WOpen (write only, zip flag).

rework QFS_NextFilename to use a dstring (avoiding a potential buffer
overflow), support 10000 files and work from the top-level fs_userpath
directory. adjust QFS_WriteFile and QFS_WriteBuffers etc to suit.

make sw32 screenshots actually get written.

hopefully everything gets written to the right places :)
This commit is contained in:
Bill Currie 2003-05-23 17:17:01 +00:00
parent c5be2fb501
commit c2c3a62956
28 changed files with 254 additions and 630 deletions

View file

@ -203,9 +203,9 @@ locs_save (const char *filename, qboolean gz)
snprintf (locfile, sizeof (locfile), "%s.gz", filename);
else
strcpy (locfile, filename);
locfd = Qopen (locfile, "z9w+");
locfd = QFS_Open (locfile, "z9w+");
} else
locfd = Qopen (filename, "w+");
locfd = QFS_Open (filename, "w+");
if (locfd == 0) {
Con_Printf ("ERROR: Unable to open %s\n", filename);
return;