Add exception and crashes catching with processing on iOS/macOS

This commit is contained in:
Wojtek Figat
2025-04-19 11:28:46 +02:00
parent 3c1aca6d46
commit 0a3f07e6e7
3 changed files with 103 additions and 16 deletions

View File

@@ -274,6 +274,24 @@ void Engine::RequestExit(int32 exitCode, FatalErrorType error)
RequestingExit();
}
#if !BUILD_SHIPPING
void Engine::Crash(FatalErrorType error)
{
switch (error)
{
case FatalErrorType::None:
case FatalErrorType::Exception:
*((int32*)3) = 11;
break;
default:
Platform::Fatal(TEXT("Crash Test"), nullptr, error);
break;
}
}
#endif
void Engine::OnFixedUpdate()
{
PROFILE_CPU_NAMED("Fixed Update");