diff options
author | BobTheBob <for.oliver.kirkham@gmail.com> | 2023-03-08 03:57:48 +0000 |
---|---|---|
committer | BobTheBob <for.oliver.kirkham@gmail.com> | 2023-03-08 03:57:48 +0000 |
commit | a4276598c8e812bd76b356cbac5e60336575dbf1 (patch) | |
tree | 77d4a01837894474d27e834b79455d2bf2a5ba35 /NorthstarDLL/engine | |
parent | 3292ad7d2a14f202df99fe46d3b9eb83277f1f21 (diff) | |
download | NorthstarLauncher-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.cpp | 11 |
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 |