diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-02 01:20:02 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-02 01:20:02 +0000 |
commit | f2e55278780b2c22067f69672ec5d9d23e40ca9d (patch) | |
tree | 7c727ece76fea93c5299d0d298afbc95d8049fd9 /NorthstarDedicatedTest/dllmain.cpp | |
parent | f341986b591cee533994597de418df1752ad5e97 (diff) | |
download | NorthstarLauncher-f2e55278780b2c22067f69672ec5d9d23e40ca9d.tar.gz NorthstarLauncher-f2e55278780b2c22067f69672ec5d9d23e40ca9d.zip |
setup for rpak filesystem hooks
Diffstat (limited to 'NorthstarDedicatedTest/dllmain.cpp')
-rw-r--r-- | NorthstarDedicatedTest/dllmain.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp index 78edb297..6acd4798 100644 --- a/NorthstarDedicatedTest/dllmain.cpp +++ b/NorthstarDedicatedTest/dllmain.cpp @@ -25,6 +25,7 @@ #include "scriptmainmenupromos.h" #include "miscclientfixes.h" #include "miscserverfixes.h" +#include "rpakfilesystem.h" #include "memalloc.h" bool initialised = false; @@ -66,6 +67,13 @@ void WaitForDebugger(HMODULE baseAddress) // in the future this will be called from launcher instead of dllmain void InitialiseNorthstar() { + if (initialised) + { + spdlog::error("Called InitialiseNorthstar more than once!"); + return; + } + initialised = true; + InitialiseLogging(); // apply initial hooks @@ -116,6 +124,7 @@ void InitialiseNorthstar() AddDllLoadCallback("engine.dll", InitialisePlaylistHooks); AddDllLoadCallback("filesystem_stdio.dll", InitialiseFilesystem); + AddDllLoadCallback("engine.dll", InitialiseEngineRpakFilesystem); AddDllLoadCallback("engine.dll", InitialiseKeyValues); // mod manager after everything else |