From daa471e0f89bfb6c177878ccb176ca0863ee6160 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Fri, 13 Sep 2024 22:46:04 +0300 Subject: [PATCH] filesystem: load system pak from remaster --- src/common/filesystem.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common/filesystem.c b/src/common/filesystem.c index 975c2561..ebe46bf5 100644 --- a/src/common/filesystem.c +++ b/src/common/filesystem.c @@ -2238,6 +2238,19 @@ FS_AddDirToSearchPath(char *dir, qboolean create) { search->next = fs_searchPaths; fs_searchPaths = search; + /* remaster additional files */ + pack = FS_LoadPK3("Q2Game.kpf"); + if (pack) + { + pack->isProtectedPak = true; + + FS_SortPack(pack); + + search = Z_Malloc(sizeof(fsSearchPath_t)); + search->pack = pack; + search->next = fs_searchPaths; + fs_searchPaths = search; + } // Numbered paks contain the official game data, they // need to be added first and are marked protected.