mirror of
https://github.com/ApfelTeeSaft/UniversalSlashingSimulator.git
synced 2026-08-28 04:03:30 +00:00
add Comprehensive FCrashHandler to dump callstack on every critical exception + gitignore
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "../Core/Common.h"
|
||||
#include "../Core/Logging/Log.h"
|
||||
#include "../Core/Diagnostics/CrashHandler.h"
|
||||
#include "../Engine/EngineCore.h"
|
||||
#include "../STW/GameMode/STWGameMode.h"
|
||||
#include "../STW/Missions/MissionManager.h"
|
||||
@@ -208,6 +209,7 @@ namespace USS
|
||||
|
||||
DWORD WINAPI InitializationThread(LPVOID lpParam)
|
||||
{
|
||||
// Initialize logging first
|
||||
EResult Result = Log::Initialize(true, "USS_Log.txt");
|
||||
if (Result != EResult::Success)
|
||||
{
|
||||
@@ -215,6 +217,12 @@ namespace USS
|
||||
return 1;
|
||||
}
|
||||
|
||||
Result = FCrashHandler::Initialize();
|
||||
if (Result != EResult::Success)
|
||||
{
|
||||
USS_WARN("Failed to initialize crash handler - crashes may not be logged");
|
||||
}
|
||||
|
||||
USS_LOG("========================================");
|
||||
USS_LOG(" UniversalSlashingSimulator v0.1.0");
|
||||
USS_LOG(" STW Gameserver Framework");
|
||||
@@ -305,6 +313,8 @@ namespace USS
|
||||
|
||||
GetEngineCore().Shutdown();
|
||||
|
||||
FCrashHandler::Shutdown();
|
||||
|
||||
Log::Shutdown();
|
||||
|
||||
g_bInitialized = false;
|
||||
|
||||
Reference in New Issue
Block a user