diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-31 00:19:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 00:19:36 +0000 |
commit | 186a4e2dbcb8a7c2f1a24f6657f0c5daa00a7fd5 (patch) | |
tree | b5d45cea23a50f0ff453684cb20d5fed5fef8bf1 /NorthstarDedicatedTest/filesystem.cpp | |
parent | a589bb0082cbae6d326644292179c9427e76e795 (diff) | |
parent | 033c8989c28384529fef72e0e8e17e824ceac8d4 (diff) | |
download | NorthstarLauncher-186a4e2dbcb8a7c2f1a24f6657f0c5daa00a7fd5.tar.gz NorthstarLauncher-186a4e2dbcb8a7c2f1a24f6657f0c5daa00a7fd5.zip |
Merge pull request #61 from emma-miler/cla
Added command line option for custom northstar directory
Diffstat (limited to 'NorthstarDedicatedTest/filesystem.cpp')
-rw-r--r-- | NorthstarDedicatedTest/filesystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/filesystem.cpp b/NorthstarDedicatedTest/filesystem.cpp index 1fe3ec9d..a8382db3 100644 --- a/NorthstarDedicatedTest/filesystem.cpp +++ b/NorthstarDedicatedTest/filesystem.cpp @@ -90,7 +90,7 @@ void SetNewModSearchPaths(Mod* mod) } } else // push compiled to head - addSearchPathOriginal(&*(*g_Filesystem), fs::absolute(COMPILED_ASSETS_PATH).string().c_str(), "GAME", PATH_ADD_TO_HEAD); + addSearchPathOriginal(&*(*g_Filesystem), fs::absolute(GetCompiledAssetsPath()).string().c_str(), "GAME", PATH_ADD_TO_HEAD); } @@ -148,7 +148,7 @@ void AddSearchPathHook(IFileSystem* fileSystem, const char* pPath, const char* p if (!strcmp(pathID, "GAME") && currentModPath.compare(pPath) && addType == PATH_ADD_TO_HEAD) { addSearchPathOriginal(fileSystem, currentModPath.c_str(), "GAME", PATH_ADD_TO_HEAD); - addSearchPathOriginal(fileSystem, COMPILED_ASSETS_PATH.string().c_str(), "GAME", PATH_ADD_TO_HEAD); + addSearchPathOriginal(fileSystem, GetCompiledAssetsPath().string().c_str(), "GAME", PATH_ADD_TO_HEAD); } } |