filesystem: load system pak from remaster

This commit is contained in:
Denis Pauk 2024-09-13 22:46:04 +03:00
parent 7509200287
commit daa471e0f8
1 changed files with 13 additions and 0 deletions

View File

@ -2238,6 +2238,19 @@ FS_AddDirToSearchPath(char *dir, qboolean create) {
search->next = fs_searchPaths; search->next = fs_searchPaths;
fs_searchPaths = search; 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 // Numbered paks contain the official game data, they
// need to be added first and are marked protected. // need to be added first and are marked protected.