fix looking for QuakeEX.kpf under userdir
This commit is contained in:
parent
bf85bbb3e8
commit
b58efad209
|
@ -2557,6 +2557,12 @@ void LOC_LoadFile (const char *file)
|
|||
{
|
||||
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);
|
||||
rw = SDL_RWFromFile(path, "rb");
|
||||
#if defined(DO_USERDIRS)
|
||||
if (!rw) {
|
||||
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", host_parms->userdir);
|
||||
rw = SDL_RWFromFile(path, "rb");
|
||||
}
|
||||
#endif
|
||||
if (!rw) goto fail;
|
||||
sz = SDL_RWsize(rw);
|
||||
if (sz <= 0) goto fail;
|
||||
|
|
Loading…
Reference in New Issue