aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
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