aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/engine
diff options
context:
space:
mode:
authorBobTheBob <for.oliver.kirkham@gmail.com>2023-03-08 03:57:48 +0000
committerBobTheBob <for.oliver.kirkham@gmail.com>2023-03-08 03:57:48 +0000
commita4276598c8e812bd76b356cbac5e60336575dbf1 (patch)
tree77d4a01837894474d27e834b79455d2bf2a5ba35 /NorthstarDLL/engine
parent3292ad7d2a14f202df99fe46d3b9eb83277f1f21 (diff)
downloadNorthstarLauncher-a4276598c8e812bd76b356cbac5e60336575dbf1.tar.gz
NorthstarLauncher-a4276598c8e812bd76b356cbac5e60336575dbf1.zip
fix crash while loading weapons and implement (currently disabled)modloading-rewrite-pr
automatic remote mod unloading
Diffstat (limited to 'NorthstarDLL/engine')
-rw-r--r--NorthstarDLL/engine/hoststate.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/NorthstarDLL/engine/hoststate.cpp b/NorthstarDLL/engine/hoststate.cpp
index ec4733d6..918c1c4b 100644
--- a/NorthstarDLL/engine/hoststate.cpp
+++ b/NorthstarDLL/engine/hoststate.cpp
@@ -164,6 +164,17 @@ void, __fastcall, (CHostState* self))
sLastMode.clear();
}
+
+ // TODO: this does work, but will also be called in places it shouldn't be (e.g. immediately after reloading mods before we actually join a server, so all remote mods are lost)
+ // exclusively for reload after leave though, this does work!
+ /*
+ * if (g_pModManager->IsUsingRemoteMods())
+ * {
+ * g_pModManager->ClearAllowedRemoteMods();
+ * g_pModManager->LoadMods(true, true);
+ * }
+ */
+
}
// clang-format off