mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 20:00:49 +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;
|
TArray<FString> Files;
|
||||||
|
|
||||||
// First comes the engine's own stuff.
|
// 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);
|
D_AddFile(Files, baseres, true, -1, GameConfig);
|
||||||
|
|
||||||
bool insertdirectoriesafter = Args->CheckParm("-insertdirafter");
|
bool insertdirectoriesafter = Args->CheckParm("-insertdirafter");
|
||||||
|
|
|
@ -604,7 +604,7 @@ TArray<GrpInfo> ParseAllGrpInfos(TArray<FileEntry>& filelist)
|
||||||
TMap<FString, uint32_t> CRCMap;
|
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.
|
// 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;
|
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));
|
engine_res.reset(FResourceFile::OpenResourceFile(baseres, true, true));
|
||||||
if (engine_res)
|
if (engine_res)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue