diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-07-02 16:18:58 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-07-02 16:18:58 -0300 |
commit | deebeb27424e63a9f30cb855a4e0d72ea586d1c9 (patch) | |
tree | 4e533db34687cf53a33a9392ebb13bbe872c56df /platform/windows/crash_handler_win.cpp | |
parent | 2dc738ce2733757631a4ccf413a92411c4400246 (diff) |
Add a new notification to detect crashes on native scripts
Diffstat (limited to 'platform/windows/crash_handler_win.cpp')
-rw-r--r-- | platform/windows/crash_handler_win.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/windows/crash_handler_win.cpp b/platform/windows/crash_handler_win.cpp index 804c2d44eb..76a227c608 100644 --- a/platform/windows/crash_handler_win.cpp +++ b/platform/windows/crash_handler_win.cpp @@ -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; |