diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-13 18:05:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 18:05:31 +0200 |
commit | d6b392825fc3e22d9e0c62f0d17633c4224eb28f (patch) | |
tree | 5c9bc70e0a9ad094fb22398d9ba6e57bc09aba85 /platform/windows/os_windows.cpp | |
parent | 322b0bee4967545383fba8a2c9b1253e2a2bbf43 (diff) | |
parent | 83fe9373621ab9f7e175a43868b2eda935107539 (diff) |
Merge pull request #11061 from marcelofg55/dump_backtrace
Add a segfault handler to dump the backtrace on Windows, Linux and OS X
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r-- | platform/windows/os_windows.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 1052db393b..530072db6e 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -164,6 +164,8 @@ const char *OS_Windows::get_audio_driver_name(int p_driver) const { void OS_Windows::initialize_core() { + crash_handler.initialize(); + last_button_state = 0; //RedirectIOToConsole(); @@ -2368,6 +2370,14 @@ bool OS_Windows::_check_internal_feature_support(const String &p_feature) { return p_feature == "pc" || p_feature == "s3tc"; } +void OS_Windows::disable_crash_handler() { + crash_handler.disable(); +} + +bool OS_Windows::is_disable_crash_handler() const { + return crash_handler.is_disabled(); +} + OS_Windows::OS_Windows(HINSTANCE _hInstance) { key_event_pos = 0; |