You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Android Arm64 stackwalk uses libunwind. Crash handler support for Android platform. #rb Chris.Babcock, Jack.porter [FYI] Chris.babcock, Jack.porter, Brandon.Schaefer #rnx #ROBOMERGE-SOURCE: CL 10122012 via CL 10122015 via CL 10122016 #ROBOMERGE-BOT: (v587-10111126) [CL 10122017 by allan bentham in Main branch]
67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "CrashDebugHelperModule.h"
|
|
#include "Logging/LogMacros.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "CrashDebugHelperPrivate.h"
|
|
|
|
IMPLEMENT_MODULE(FCrashDebugHelperModule, CrashDebugHelper);
|
|
DEFINE_LOG_CATEGORY(LogCrashDebugHelper);
|
|
|
|
#if PLATFORM_WINDOWS
|
|
#include "CrashDebugHelperWindows.h"
|
|
|
|
#elif PLATFORM_LINUX
|
|
#include "Linux/CrashDebugHelperLinux.h"
|
|
|
|
#elif PLATFORM_MAC
|
|
#include "CrashDebugHelperMac.h"
|
|
|
|
#elif PLATFORM_IOS
|
|
#include "CrashDebugHelperIOS.h"
|
|
|
|
#elif PLATFORM_ANDROID
|
|
#include "Android/CrashDebugHelperAndroid.h"
|
|
|
|
#else
|
|
#error "Unknown platform"
|
|
#endif
|
|
|
|
void FCrashDebugHelperModule::StartupModule()
|
|
{
|
|
CrashDebugHelper = new FCrashDebugHelper();
|
|
if (CrashDebugHelper != nullptr)
|
|
{
|
|
CrashDebugHelper->Init();
|
|
}
|
|
}
|
|
|
|
void FCrashDebugHelperModule::ShutdownModule()
|
|
{
|
|
if (CrashDebugHelper != nullptr)
|
|
{
|
|
delete CrashDebugHelper;
|
|
CrashDebugHelper = nullptr;
|
|
}
|
|
}
|
|
|
|
ICrashDebugHelper* FCrashDebugHelperModule::Get()
|
|
{
|
|
return CrashDebugHelper;
|
|
}
|
|
|
|
ICrashDebugHelper* FCrashDebugHelperModule::GetNew()
|
|
{
|
|
if (CrashDebugHelper != nullptr)
|
|
{
|
|
delete CrashDebugHelper;
|
|
CrashDebugHelper = nullptr;
|
|
}
|
|
CrashDebugHelper = new FCrashDebugHelper();
|
|
if (CrashDebugHelper != nullptr)
|
|
{
|
|
CrashDebugHelper->Init();
|
|
}
|
|
return CrashDebugHelper;
|
|
}
|