Resolve raze.pk3 via search paths

Linux installs typically don't have it next to the program binary
This commit is contained in:
Brian Koropoff 2021-05-22 15:58:43 -07:00 committed by Christoph Oelckers
parent e4e949877d
commit 9394ebe768
2 changed files with 2 additions and 2 deletions

View file

@ -298,7 +298,7 @@ void InitFileSystem(TArray<GrpEntry>& groups)
TArray<FString> Files;
// First comes the engine's own stuff.
FString baseres = progdir + ENGINERES_FILE;
const char* baseres = BaseFileSearch(ENGINERES_FILE, nullptr, true, GameConfig);
D_AddFile(Files, baseres, true, -1, GameConfig);
bool insertdirectoriesafter = Args->CheckParm("-insertdirafter");

View file

@ -604,7 +604,7 @@ TArray<GrpInfo> ParseAllGrpInfos(TArray<FileEntry>& filelist)
TMap<FString, uint32_t> CRCMap;
// This opens the base resource only for reading the grpinfo from it which we need before setting up the game state.
std::unique_ptr<FResourceFile> engine_res;
FString baseres = progdir + ENGINERES_FILE;
const char* baseres = BaseFileSearch(ENGINERES_FILE, nullptr, true, GameConfig);
engine_res.reset(FResourceFile::OpenResourceFile(baseres, true, true));
if (engine_res)
{