diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-01-30 20:32:33 +0100 |
---|---|---|
committer | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-01-30 20:32:33 +0100 |
commit | 7e338fac5c15a3cd6efdd570a93e6d8586856143 (patch) | |
tree | 910dae9926776e39462153f7a135dbd9c9eef7a8 /NorthstarDedicatedTest/filesystem.cpp | |
parent | a589bb0082cbae6d326644292179c9427e76e795 (diff) | |
download | NorthstarLauncher-7e338fac5c15a3cd6efdd570a93e6d8586856143.tar.gz NorthstarLauncher-7e338fac5c15a3cd6efdd570a93e6d8586856143.zip |
Added command line option for custom northstar dir
Added command line option for custom northstar dir
https://github.com/orgs/R2Northstar/projects/1#card-76312632
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); } } |