aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dedicated
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2023-02-06 00:25:06 +0000
committerGitHub <noreply@github.com>2023-02-06 01:25:06 +0100
commit31a05c35e60b844cf806b146a4889f79272ed749 (patch)
treea82c6120efea90455ab9a2143e7602cee2c6d476 /NorthstarDLL/dedicated
parentf7b7de8a584b877b9bf05fe63a0b0f91c7a5e944 (diff)
downloadNorthstarLauncher-31a05c35e60b844cf806b146a4889f79272ed749.tar.gz
NorthstarLauncher-31a05c35e60b844cf806b146a4889f79272ed749.zip
Flush loggers properly on dedicated server shutdown (#413)v1.12.2-rc1v1.12.2v1.12.1-rc1v1.12.1
flush loggers properly on dedicated server shutdown
Diffstat (limited to 'NorthstarDLL/dedicated')
-rw-r--r--NorthstarDLL/dedicated/dedicated.cpp3
1 files changed, 3 insertions, 0 deletions
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))