mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
filesystem: load system pak from remaster
This commit is contained in:
parent
7509200287
commit
daa471e0f8
1 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue