aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/plugins.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 01:10:47 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 01:10:47 +0100
commit503d336e9e695a0518f90f727f4a2fe4569615e6 (patch)
treeb39d969c57844704e42a60631b81c09ee55b7a29 /NorthstarDedicatedTest/plugins.cpp
parentf230156cbebc1b93db5e254410ee2ab3a8dcb27c (diff)
downloadNorthstarLauncher-503d336e9e695a0518f90f727f4a2fe4569615e6.tar.gz
NorthstarLauncher-503d336e9e695a0518f90f727f4a2fe4569615e6.zip
move more things to macros
Diffstat (limited to 'NorthstarDedicatedTest/plugins.cpp')
-rw-r--r--NorthstarDedicatedTest/plugins.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/plugins.cpp b/NorthstarDedicatedTest/plugins.cpp
index 70535a32..54067772 100644
--- a/NorthstarDedicatedTest/plugins.cpp
+++ b/NorthstarDedicatedTest/plugins.cpp
@@ -1,4 +1,5 @@
#include "pch.h"
+#include "hooks.h"
#include "squirrel.h"
#include "plugins.h"
#include <chrono>
@@ -384,7 +385,7 @@ int getPlayerInfoBool(bool* out_ptr, PlayerInfoType var)
return n;
}
-void InitialisePluginCommands(HMODULE baseAddress)
+ON_DLL_LOAD_CLIENT_RELIESON("client.dll", PluginCommands, ClientSquirrel, (HMODULE baseAddress)
{
// i swear there's a way to make this not have be run in 2 contexts but i can't figure it out
// some funcs i need are just not available in UI or CLIENT
@@ -417,4 +418,4 @@ void InitialisePluginCommands(HMODULE baseAddress)
g_UISquirrelManager->AddFuncRegistration("void", "NSSetLoading", "bool loading", "", SQ_SetConnected);
g_UISquirrelManager->AddFuncRegistration("void", "NSUpdateListenServer", "", "", SQ_UpdateListenServer);
}
-}
+})