Core/CrashHandler: Compile WheatyExceptionReport only once and moved its global variable initializer to all projects using it

This commit is contained in:
Shauren
2024-09-15 12:13:54 +02:00
parent 6a5b24cacc
commit fd0a7ba871
10 changed files with 53 additions and 14 deletions

View File

@@ -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