diff --git a/source/core/initfs.cpp b/source/core/initfs.cpp index f5796dc6a..8c5b7da92 100644 --- a/source/core/initfs.cpp +++ b/source/core/initfs.cpp @@ -298,7 +298,7 @@ void InitFileSystem(TArray& groups) TArray 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"); diff --git a/source/core/searchpaths.cpp b/source/core/searchpaths.cpp index 194606caa..56379464f 100644 --- a/source/core/searchpaths.cpp +++ b/source/core/searchpaths.cpp @@ -604,7 +604,7 @@ TArray ParseAllGrpInfos(TArray& filelist) TMap 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 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) {