From deebeb27424e63a9f30cb855a4e0d72ea586d1c9 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Mon, 2 Jul 2018 16:18:58 -0300 Subject: Add a new notification to detect crashes on native scripts --- core/os/main_loop.cpp | 1 + core/os/main_loop.h | 1 + modules/gdnative/nativescript/nativescript.cpp | 19 +++++++++++++++++++ modules/gdnative/nativescript/nativescript.h | 3 +++ platform/osx/crash_handler_osx.mm | 4 ++++ platform/windows/crash_handler_win.cpp | 3 +++ platform/x11/crash_handler_x11.cpp | 4 ++++ scene/main/scene_tree.cpp | 5 +++++ 8 files changed, 40 insertions(+) diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp index 916c86613e..c51801e3e2 100644 --- a/core/os/main_loop.cpp +++ b/core/os/main_loop.cpp @@ -58,6 +58,7 @@ void MainLoop::_bind_methods() { BIND_CONSTANT(NOTIFICATION_OS_MEMORY_WARNING); BIND_CONSTANT(NOTIFICATION_TRANSLATION_CHANGED); BIND_CONSTANT(NOTIFICATION_WM_ABOUT); + BIND_CONSTANT(NOTIFICATION_CRASH); }; void MainLoop::set_init_script(const Ref