mirror of
https://git.code.sf.net/p/quake/nuq
synced 2025-03-13 06:12:25 +00:00
add the z flag to the appropriate Qopen/Qdopen calls
This commit is contained in:
parent
279d332373
commit
9752037248
3 changed files with 4 additions and 4 deletions
|
@ -612,7 +612,7 @@ void Host_Loadgame_f (void)
|
|||
// SCR_BeginLoadingPlaque ();
|
||||
|
||||
Con_Printf ("Loading game from %s...\n", name);
|
||||
f = Qopen (name, "r");
|
||||
f = Qopen (name, "rz");
|
||||
if (!f)
|
||||
{
|
||||
Con_Printf ("ERROR: couldn't open.\n");
|
||||
|
|
|
@ -482,7 +482,7 @@ void M_ScanSaves (void)
|
|||
strcpy (m_filenames[i], "--- UNUSED SLOT ---");
|
||||
loadable[i] = false;
|
||||
snprintf (name, sizeof(name), "%s/s%i.sav", com_gamedir, i);
|
||||
f = Qopen (name, "r");
|
||||
f = Qopen (name, "rz");
|
||||
if (!f)
|
||||
continue;
|
||||
Qgets(f,buf,sizeof(buf));
|
||||
|
|
|
@ -213,7 +213,7 @@ COM_FileOpenRead (char *path, QFile **hndl)
|
|||
{
|
||||
QFile *f;
|
||||
|
||||
f = Qopen(path, "rb");
|
||||
f = Qopen(path, "rbz");
|
||||
if (!f)
|
||||
{
|
||||
*hndl = NULL;
|
||||
|
@ -403,7 +403,7 @@ COM_OpenRead (const char *path, int offs, int len)
|
|||
#ifdef WIN32
|
||||
setmode(fd,O_BINARY);
|
||||
#endif
|
||||
return Qdopen(fd,"rb");
|
||||
return Qdopen(fd,"rbz");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue