From 31a05c35e60b844cf806b146a4889f79272ed749 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Mon, 6 Feb 2023 00:25:06 +0000 Subject: Flush loggers properly on dedicated server shutdown (#413) flush loggers properly on dedicated server shutdown --- NorthstarDLL/dedicated/dedicated.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NorthstarDLL/dedicated') diff --git a/NorthstarDLL/dedicated/dedicated.cpp b/NorthstarDLL/dedicated/dedicated.cpp index 8f6f8fe6..3d7d756c 100644 --- a/NorthstarDLL/dedicated/dedicated.cpp +++ b/NorthstarDLL/dedicated/dedicated.cpp @@ -278,7 +278,10 @@ void, __fastcall, (void* sqvm)) // atm, this will crash if not aborted, so this just closes more gracefully static ConVar* Cvar_fatal_script_errors = g_pCVar->FindVar("fatal_script_errors"); if (Cvar_fatal_script_errors->GetBool()) + { + NS::log::FlushLoggers(); abort(); + } } ON_DLL_LOAD_DEDI("server.dll", DedicatedServerGameDLL, (CModule module)) -- cgit v1.2.3