add the z flag to the appropriate Qopen/Qdopen calls

This commit is contained in:
Bill Currie 2000-09-19 22:42:52 +00:00
parent 279d332373
commit 9752037248
3 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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));

View file

@ -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;
}