From 617797c47cac39830282b7ea85fc38eb2d242e19 Mon Sep 17 00:00:00 2001 From: iwek7 Date: Mon, 29 Jul 2019 20:09:22 +0200 Subject: Adds skip-breakpoints feature --- editor/editor_run.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'editor/editor_run.cpp') diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp index e4e32b2ce0..7b5ec9e772 100644 --- a/editor/editor_run.cpp +++ b/editor/editor_run.cpp @@ -37,7 +37,8 @@ EditorRun::Status EditorRun::get_status() const { return status; } -Error EditorRun::run(const String &p_scene, const String &p_custom_args, const List &p_breakpoints) { + +Error EditorRun::run(const String &p_scene, const String &p_custom_args, const List &p_breakpoints, const bool &p_skip_breakpoints) { List args; @@ -162,6 +163,10 @@ Error EditorRun::run(const String &p_scene, const String &p_custom_args, const L args.push_back(bpoints); } + if (p_skip_breakpoints) { + args.push_back("--skip-breakpoints"); + } + if (p_scene != "") { args.push_back(p_scene); } -- cgit v1.2.3