look for QuakeEX.kpf under userdir too.

Closes https://github.com/sezero/quakespasm/issues/8
This commit is contained in:
Ozkan Sezer 2021-09-20 14:55:50 +03:00
parent e632b79725
commit bf85bbb3e8

View file

@ -2547,6 +2547,12 @@ void LOC_LoadFile (const char *file)
memset(&archive, 0, sizeof(archive));
q_snprintf(path, sizeof(path), "%s/%s", com_basedir, file);
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)
{
q_snprintf(path, sizeof(path), "%s/QuakeEX.kpf", com_basedir);