mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
fix looking for QuakeEX.kpf under userdir
This commit is contained in:
parent
bf85bbb3e8
commit
b58efad209
1 changed files with 6 additions and 0 deletions
|
@ -2557,6 +2557,12 @@ void LOC_LoadFile (const char *file)
|
||||||
{
|
{
|
||||||
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);
|
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);
|
||||||
rw = SDL_RWFromFile(path, "rb");
|
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;
|
if (!rw) goto fail;
|
||||||
sz = SDL_RWsize(rw);
|
sz = SDL_RWsize(rw);
|
||||||
if (sz <= 0) goto fail;
|
if (sz <= 0) goto fail;
|
||||||
|
|
Loading…
Reference in a new issue