mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +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;
|
||||
byte *loadbuf;
|
||||
int loadsize;
|
||||
|
||||
/*
|
||||
QFS_LoadFile
|
||||
|
@ -1136,12 +1134,7 @@ QFS_LoadFile (const char *path, int usehunk)
|
|||
buf = calloc (1, len + 1);
|
||||
else if (usehunk == 3)
|
||||
buf = Cache_Alloc (loadcache, len + 1, base);
|
||||
else if (usehunk == 4) {
|
||||
if (len + 1 > loadsize)
|
||||
buf = Hunk_TempAlloc (len + 1);
|
||||
else
|
||||
buf = loadbuf;
|
||||
} else
|
||||
else
|
||||
Sys_Error ("QFS_LoadFile: bad usehunk");
|
||||
|
||||
if (!buf)
|
||||
|
|
Loading…
Reference in a new issue