diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-09-07 22:01:49 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-09-13 10:07:23 -0300 |
commit | 83fe9373621ab9f7e175a43868b2eda935107539 (patch) | |
tree | 116a92b2c32713b4f3f907b451e457a9a623d50a /editor | |
parent | 06138bf18c25a8c5f7e2e5bb1ebd9dcf0b2f28dd (diff) |
Added a crash handler to dump the backtrace on Windows, Linux and OS X
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_run.cpp | 4 | ||||
-rw-r--r-- | editor/project_manager.cpp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp index e377fa1a8e..90cbabcc4f 100644 --- a/editor/editor_run.cpp +++ b/editor/editor_run.cpp @@ -72,6 +72,10 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li screen--; } + if (OS::get_singleton()->is_disable_crash_handler()) { + args.push_back("--disable-crash-handler"); + } + Rect2 screen_rect; screen_rect.position = OS::get_singleton()->get_screen_position(screen); screen_rect.size = OS::get_singleton()->get_screen_size(screen); diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index b36d4715c4..cca5e1f6a0 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -948,6 +948,10 @@ void ProjectManager::_open_project_confirm() { args.push_back("--editor"); + if (OS::get_singleton()->is_disable_crash_handler()) { + args.push_back("--disable-crash-handler"); + } + String exec = OS::get_singleton()->get_executable_path(); OS::ProcessID pid = 0; @@ -999,6 +1003,10 @@ void ProjectManager::_run_project_confirm() { args.push_back("--path"); args.push_back(path); + if (OS::get_singleton()->is_disable_crash_handler()) { + args.push_back("--disable-crash-handler"); + } + String exec = OS::get_singleton()->get_executable_path(); OS::ProcessID pid = 0; |