aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index 50c7b371..f19e64d6 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -1,5 +1,6 @@
#include "pch.h"
#include "modmanager.h"
+#include "hooks.h"
#include "convar.h"
#include "concommand.h"
#include "audio.h"
@@ -570,12 +571,12 @@ void ReloadModsCommand(const CCommand& args)
g_ModManager->LoadMods();
}
-void InitialiseModManager(HMODULE baseAddress)
+ON_DLL_LOAD_RELIESON("engine.dll", ModManager, ConCommand, (HMODULE baseAddress)
{
g_ModManager = new ModManager;
- RegisterConCommand("reload_mods", ReloadModsCommand, "idk", FCVAR_NONE);
-}
+ RegisterConCommand("reload_mods", ReloadModsCommand, "reloads mods", FCVAR_NONE);
+})
fs::path GetModFolderPath()
{