Add Engine::ReportCrash event for custom crash reporting or handling
This commit is contained in:
@@ -372,7 +372,10 @@ void PlatformBase::Fatal(const StringView& msg, void* context, FatalErrorType er
|
||||
}
|
||||
|
||||
// Show error message
|
||||
Error(msg);
|
||||
if (Engine::ReportCrash.IsBinded())
|
||||
Engine::ReportCrash(msg, context);
|
||||
else
|
||||
Error(msg);
|
||||
|
||||
// Only main thread can call exit directly
|
||||
if (IsInMainThread())
|
||||
|
||||
Reference in New Issue
Block a user