diff options
| author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-03 18:42:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-03 18:42:49 +0200 |
| commit | 2017119a3dfda0ac6b1aa30c949a7e9b8e5f1e77 (patch) | |
| tree | 728be92d6c6d4a6347172d7f95411fe5575e0842 /core | |
| parent | af4d7c4f6d434bf4b55cf0ee65cd10813d06e580 (diff) | |
| parent | deebeb27424e63a9f30cb855a4e0d72ea586d1c9 (diff) | |
Merge pull request #19919 from marcelofg55/notif_crash
Add a new notification to detect crashes on native scripts
Diffstat (limited to 'core')
| -rw-r--r-- | core/os/main_loop.cpp | 1 | ||||
| -rw-r--r-- | core/os/main_loop.h | 1 |
2 files changed, 2 insertions, 0 deletions
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<Script> &p_init_script) { diff --git a/core/os/main_loop.h b/core/os/main_loop.h index 546e4e280c..f96e46141e 100644 --- a/core/os/main_loop.h +++ b/core/os/main_loop.h @@ -62,6 +62,7 @@ public: // fixes this issue. NOTIFICATION_TRANSLATION_CHANGED = 90, NOTIFICATION_WM_ABOUT = 91, + NOTIFICATION_CRASH = 92, }; virtual void input_event(const Ref<InputEvent> &p_event); |