From b0b87aeea1a324af3a8c16be4b87bed05929de4e Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 15 Sep 2024 12:13:54 +0200 Subject: Core/CrashHandler: Compile WheatyExceptionReport only once and moved its global variable initializer to all projects using it (cherry picked from commit fd0a7ba871060c895fdf701799dbf649ee697078) --- src/server/worldserver/Main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/worldserver/Main.cpp') diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index c3ad9b4f420..9743580d74b 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -740,3 +740,9 @@ variables_map GetConsoleArguments(int argc, char** argv, fs::path& configFile, f return vm; } + +#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS +#include "WheatyExceptionReport.h" +// must be at end of file because of init_seg pragma +INIT_CRASH_HANDLER(); +#endif -- cgit v1.2.3