mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
Separate file search from loading.
QFS_LoadFile (and its wrappers) now take a file handle rather than a path. This will make vpath usage a little cleaner to implement.
This commit is contained in:
parent
328b997843
commit
3efb0c538f
47 changed files with 108 additions and 112 deletions
|
@ -171,7 +171,7 @@ Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
|||
uint32_t *buf;
|
||||
|
||||
// load the file
|
||||
buf = (uint32_t *) QFS_LoadFile (mod->name, 0);
|
||||
buf = (uint32_t *) QFS_LoadFile (QFS_FOpenFile (mod->name), 0);
|
||||
if (!buf) {
|
||||
if (crash)
|
||||
Sys_Error ("Mod_LoadModel: %s not found", mod->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue