mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-12 12:51:44 +00:00
look for QuakeEX.kpf under userdir too.
Closes https://github.com/sezero/quakespasm/issues/8
This commit is contained in:
parent
e632b79725
commit
bf85bbb3e8
1 changed files with 6 additions and 0 deletions
|
@ -2547,6 +2547,12 @@ void LOC_LoadFile (const char *file)
|
||||||
memset(&archive, 0, sizeof(archive));
|
memset(&archive, 0, sizeof(archive));
|
||||||
q_snprintf(path, sizeof(path), "%s/%s", com_basedir, file);
|
q_snprintf(path, sizeof(path), "%s/%s", com_basedir, file);
|
||||||
rw = SDL_RWFromFile(path, "rb");
|
rw = SDL_RWFromFile(path, "rb");
|
||||||
|
#if defined(DO_USERDIRS)
|
||||||
|
if (!rw) {
|
||||||
|
q_snprintf(path, sizeof(path), "%s/%s", host_parms->userdir, file);
|
||||||
|
rw = SDL_RWFromFile(path, "rb");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (!rw)
|
if (!rw)
|
||||||
{
|
{
|
||||||
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);
|
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);
|
||||||
|
|
Loading…
Reference in a new issue