mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
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:
parent
c5be2fb501
commit
c2c3a62956
28 changed files with 254 additions and 630 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue