aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/keyvalues.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-06 21:46:32 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-06 21:46:32 +0100
commit900855c0036aa9a6a6305e3f17a41a55640bdfaf (patch)
tree2f6a3c07549927b600ec3b1a8389a0062a684a53 /NorthstarDedicatedTest/keyvalues.cpp
parent51df18abbc0c344b56f88e0a66b6b46d6aca375c (diff)
downloadNorthstarLauncher-900855c0036aa9a6a6305e3f17a41a55640bdfaf.tar.gz
NorthstarLauncher-900855c0036aa9a6a6305e3f17a41a55640bdfaf.zip
add mod enabling/disabling
Diffstat (limited to 'NorthstarDedicatedTest/keyvalues.cpp')
-rw-r--r--NorthstarDedicatedTest/keyvalues.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/keyvalues.cpp b/NorthstarDedicatedTest/keyvalues.cpp
index 3d527e62..3bf4ff48 100644
--- a/NorthstarDedicatedTest/keyvalues.cpp
+++ b/NorthstarDedicatedTest/keyvalues.cpp
@@ -52,6 +52,9 @@ void ModManager::TryBuildKeyValues(const char* filename)
// note: #include should be identical but it's actually just broken, thanks respawn
for (int i = m_loadedMods.size() - 1; i > -1; i--)
{
+ if (!m_loadedMods[i]->Enabled)
+ continue;
+
size_t fileHash = std::hash<std::string>{}(normalisedPath);
for (int j = 0; j < m_loadedMods[i]->KeyValuesHash.size(); j++)
{