You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add a new notification to detect crashes on native scripts
This commit is contained in:
@@ -124,6 +124,9 @@ DWORD CrashHandlerException(EXCEPTION_POINTERS *ep) {
|
||||
|
||||
fprintf(stderr, "%s: Program crashed\n", __FUNCTION__);
|
||||
|
||||
if (OS::get_singleton()->get_main_loop())
|
||||
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_CRASH);
|
||||
|
||||
// Load the symbols:
|
||||
if (!SymInitialize(process, NULL, false))
|
||||
return EXCEPTION_CONTINUE_SEARCH;
|
||||
|
||||
Reference in New Issue
Block a user