aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/scriptsrson.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/scriptsrson.cpp
parent51df18abbc0c344b56f88e0a66b6b46d6aca375c (diff)
downloadNorthstarLauncher-900855c0036aa9a6a6305e3f17a41a55640bdfaf.tar.gz
NorthstarLauncher-900855c0036aa9a6a6305e3f17a41a55640bdfaf.zip
add mod enabling/disabling
Diffstat (limited to 'NorthstarDedicatedTest/scriptsrson.cpp')
-rw-r--r--NorthstarDedicatedTest/scriptsrson.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/scriptsrson.cpp b/NorthstarDedicatedTest/scriptsrson.cpp
index bc49ed26..514d4f1c 100644
--- a/NorthstarDedicatedTest/scriptsrson.cpp
+++ b/NorthstarDedicatedTest/scriptsrson.cpp
@@ -19,6 +19,9 @@ void ModManager::BuildScriptsRson()
for (Mod* mod : m_loadedMods)
{
+ if (!mod->Enabled)
+ continue;
+
// this isn't needed at all, just nice to have imo
scriptsRson += "// MOD: ";
scriptsRson += mod->Name;