commit changes for dabb, since he's having trouble with sourceforge:

win32 requires a call to setmode(), since it doesn't seem to do the mode change in fdopen properly.
also removed some "z" modes, since someone forgot to when removing the Qfile stuffs
This commit is contained in:
Thad Ward 2000-05-24 19:19:08 +00:00
parent 4acb725dec
commit b5e36c7149

View file

@ -207,7 +207,7 @@ COM_FileOpenRead (char *path, FILE **hndl)
{
FILE *f;
f = fopen(path, "rbz");
f = fopen(path, "rb");
if (!f)
{
*hndl = NULL;
@ -393,7 +393,11 @@ COM_OpenRead (const char *path, int offs, int len)
}
lseek(fd,offs,SEEK_SET);
com_filesize=len;
return fdopen(fd,"rbz");
#ifdef WIN32
setmode(fd,O_BINARY);
#endif
return fdopen(fd,"rb");
return 0;
}