From b58efad209b3f8f36f3672748d81a7f8950fadd2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 1 Oct 2021 11:02:02 +0300 Subject: [PATCH] fix looking for QuakeEX.kpf under userdir --- Quake/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Quake/common.c b/Quake/common.c index b7e4a1c8..f8c9ec03 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -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;