aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dllmain.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-03 20:55:19 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-03 20:55:19 +0000
commit9e8232e97db1cfe9f0f9a69bdfde5048a6290df1 (patch)
treebe1324c39dd1680335f4bfaf3d1660b5d6e31514 /NorthstarDedicatedTest/dllmain.cpp
parentf33bab4fb3586fd06896a7730bce8913c2616b78 (diff)
downloadNorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.tar.gz
NorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.zip
slightly awful fix for allocation issues
Diffstat (limited to 'NorthstarDedicatedTest/dllmain.cpp')
-rw-r--r--NorthstarDedicatedTest/dllmain.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp
index bdee441f..9d8dc9a7 100644
--- a/NorthstarDedicatedTest/dllmain.cpp
+++ b/NorthstarDedicatedTest/dllmain.cpp
@@ -22,6 +22,7 @@
#include "miscserverscript.h"
#include "clientauthhooks.h"
#include "scriptbrowserhooks.h"
+#include "memalloc.h"
bool initialised = false;
@@ -51,6 +52,9 @@ void WaitForDebugger(HMODULE baseAddress)
// earlier waitfordebugger call than is in vanilla, just so we can debug stuff a little easier
if (CommandLine()->CheckParm("-waitfordebugger"))
{
+ spdlog::info("waiting for debugger...");
+ spdlog::info("{} bytes have been statically allocated", g_iStaticAllocated);
+
while (!IsDebuggerPresent())
Sleep(100);
}