mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +00:00
Remove the stack loading from QFS_LoadFile.
This commit is contained in:
parent
a561477274
commit
83c47aacef
1 changed files with 1 additions and 8 deletions
|
@ -1103,8 +1103,6 @@ QFS_FOpenFile (const char *filename, QFile **gzfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
cache_user_t *loadcache;
|
cache_user_t *loadcache;
|
||||||
byte *loadbuf;
|
|
||||||
int loadsize;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
QFS_LoadFile
|
QFS_LoadFile
|
||||||
|
@ -1136,12 +1134,7 @@ QFS_LoadFile (const char *path, int usehunk)
|
||||||
buf = calloc (1, len + 1);
|
buf = calloc (1, len + 1);
|
||||||
else if (usehunk == 3)
|
else if (usehunk == 3)
|
||||||
buf = Cache_Alloc (loadcache, len + 1, base);
|
buf = Cache_Alloc (loadcache, len + 1, base);
|
||||||
else if (usehunk == 4) {
|
else
|
||||||
if (len + 1 > loadsize)
|
|
||||||
buf = Hunk_TempAlloc (len + 1);
|
|
||||||
else
|
|
||||||
buf = loadbuf;
|
|
||||||
} else
|
|
||||||
Sys_Error ("QFS_LoadFile: bad usehunk");
|
Sys_Error ("QFS_LoadFile: bad usehunk");
|
||||||
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue