mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
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:
parent
4acb725dec
commit
b5e36c7149
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue