mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
Resolve raze.pk3 via search paths
Linux installs typically don't have it next to the program binary
This commit is contained in:
parent
e4e949877d
commit
9394ebe768
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue