diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-08-18 11:21:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-18 12:21:06 +0200 |
commit | 5c730b0bb3ffcb5f6da9b15e05f54f778d86c23f (patch) | |
tree | e49ff21e6fccdadc7f122313756d350159d09cf0 /primedev/dllmain.cpp | |
parent | a28c1cb10cc805907d22b656ccc300b39b720a88 (diff) | |
download | NorthstarLauncher-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.cpp | 8 |
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(); |