From 27aa7523350860b0c9df3ffe9f52519733b07610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Tue, 26 Jul 2022 19:07:06 +0200 Subject: [PATCH] Keep crash handler status on editor restart (cherry picked from commit 116f03a1b68ecc59f9755cd0219e256c63955f55) --- editor/editor_node.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c76b3504ae9..e1bf4d7849b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1625,9 +1625,16 @@ void EditorNode::restart_editor() { _exit_editor(); List args; + args.push_back("--path"); args.push_back(ProjectSettings::get_singleton()->get_resource_path()); + args.push_back("-e"); + + if (OS::get_singleton()->is_disable_crash_handler()) { + args.push_back("--disable-crash-handler"); + } + if (to_reopen != String()) { args.push_back(to_reopen); }