aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-07-08 23:21:13 +0100
committerGitHub <noreply@github.com>2022-07-09 00:21:13 +0200
commit151d678453f3e321fcccf2512e6e2f53436f1469 (patch)
tree4b1102826be6f73835224c3d06c04f4476af7b6a /NorthstarDedicatedTest/modmanager.cpp
parent9f8190486e04c66483dc8cd0ca9fd92fc732789a (diff)
downloadNorthstarLauncher-151d678453f3e321fcccf2512e6e2f53436f1469.tar.gz
NorthstarLauncher-151d678453f3e321fcccf2512e6e2f53436f1469.zip
Add Postload support for rpaks (#217)v1.9.1-rc1
* fixed custom rpaks being loaded more than once * formatting * better things, although LoadPakSyncHook is annoying * formatting * removing unnecessary comments and stuff (whoops) * Moving to use PakLoadManager * formatting * postload things * formatting * trailing space smh
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index 50c7b371..9de1c7b1 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -383,6 +383,13 @@ void ModManager::LoadMods()
modPak.m_bAutoLoad =
!bUseRpakJson || (dRpakJson.HasMember("Preload") && dRpakJson["Preload"].IsObject() &&
dRpakJson["Preload"].HasMember(pakName) && dRpakJson["Preload"][pakName].IsTrue());
+ // postload things
+ if (!bUseRpakJson ||
+ (dRpakJson.HasMember("Postload") && dRpakJson["Postload"].IsObject() && dRpakJson["Postload"].HasMember(pakName)))
+ {
+ modPak.m_sLoadAfterPak = dRpakJson["Postload"][pakName].GetString();
+ }
+
modPak.m_sPakName = pakName;
// not using atm because we need to resolve path to rpak