aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-29 02:57:31 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-29 02:57:31 +0100
commit30e67549449a0ffbb58f7fc736bdd9e4ce7ec9d5 (patch)
treef6a53098ce2489829f8428ea1714d666cc6901ef /NorthstarDedicatedTest/modmanager.cpp
parenta5a937d19fcb51fe4168345d09596784e174726e (diff)
downloadNorthstarLauncher-30e67549449a0ffbb58f7fc736bdd9e4ce7ec9d5.tar.gz
NorthstarLauncher-30e67549449a0ffbb58f7fc736bdd9e4ce7ec9d5.zip
add script api for mods and add temp fix for scripts.rson not loading right
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index 964d37ae..ae1ad98a 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "modmanager.h"
#include "convar.h"
+#include "concommand.h"
#include "rapidjson/error/en.h"
#include "rapidjson/document.h"
@@ -272,7 +273,14 @@ void ModManager::CompileAssetsForFile(const char* filename)
}
+void ReloadModsCommand(const CCommand& args)
+{
+ g_ModManager->LoadMods();
+}
+
void InitialiseModManager(HMODULE baseAddress)
{
g_ModManager = new ModManager();
+
+ RegisterConCommand("reload_mods", ReloadModsCommand, "idk", FCVAR_NONE);
} \ No newline at end of file