diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-11-13 00:26:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 00:26:46 +0000 |
commit | d237401bb97c1fa2d6ee87220d49e4b3343e7201 (patch) | |
tree | 241b421ac76c69044378b008e1233bfc066fadd3 /NorthstarDLL/modmanager.cpp | |
parent | bf09852285941e20a04731443d03c693e3f8ba2d (diff) | |
download | NorthstarLauncher-d237401bb97c1fa2d6ee87220d49e4b3343e7201.tar.gz NorthstarLauncher-d237401bb97c1fa2d6ee87220d49e4b3343e7201.zip |
allow kb_act.lst to be compiled from multiple mods (#298)
* allow kb_act.lst to be compiled from multiple mods
* fixup formatting
* add a couple extra comments because i really did not add enough
Diffstat (limited to 'NorthstarDLL/modmanager.cpp')
-rw-r--r-- | NorthstarDLL/modmanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDLL/modmanager.cpp b/NorthstarDLL/modmanager.cpp index 07a197dd..d95bcbce 100644 --- a/NorthstarDLL/modmanager.cpp +++ b/NorthstarDLL/modmanager.cpp @@ -262,6 +262,7 @@ ModManager::ModManager() m_hPdefHash = STR_HASH( "cfg\\server\\persistent_player_data_version_231.pdef" // this can have multiple versions, but we use 231 so that's what we hash ); + m_hKBActHash = STR_HASH("scripts\\kb_act.lst"); LoadMods(); } @@ -685,6 +686,8 @@ void ModManager::CompileAssetsForFile(const char* filename) BuildScriptsRson(); else if (fileHash == m_hPdefHash) BuildPdef(); + else if (fileHash == m_hKBActHash) + BuildKBActionsList(); else { // check if we should build keyvalues, depending on whether any of our mods have patch kvs for this file |