aboutsummaryrefslogtreecommitdiff
path: root/primedev/dllmain.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-08-18 11:21:06 +0100
committerGitHub <noreply@github.com>2024-08-18 12:21:06 +0200
commit5c730b0bb3ffcb5f6da9b15e05f54f778d86c23f (patch)
treee49ff21e6fccdadc7f122313756d350159d09cf0 /primedev/dllmain.cpp
parenta28c1cb10cc805907d22b656ccc300b39b720a88 (diff)
downloadNorthstarLauncher-5c730b0bb3ffcb5f6da9b15e05f54f778d86c23f.tar.gz
NorthstarLauncher-5c730b0bb3ffcb5f6da9b15e05f54f778d86c23f.zip
Refactor DLL callbacks (#665)
Cherry-picked from primedev and slightly modified Co-authored-by: F1F7Y <filip.bartos07@proton.me>
Diffstat (limited to 'primedev/dllmain.cpp')
-rw-r--r--primedev/dllmain.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/primedev/dllmain.cpp b/primedev/dllmain.cpp
index 1191307f..95ea103f 100644
--- a/primedev/dllmain.cpp
+++ b/primedev/dllmain.cpp
@@ -10,6 +10,8 @@
#include "squirrel/squirrel.h"
#include "server/serverpresence.h"
+#include "windows/libsys.h"
+
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
@@ -64,7 +66,11 @@ bool InitialiseNorthstar()
// Write launcher version to log
StartupLog();
- InstallInitialHooks();
+ // Init minhook
+ HookSys_Init();
+
+ // Init loadlibrary callbacks
+ LibSys_Init();
g_pServerPresence = new ServerPresenceManager();