You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Added an auto quit and auto build flag to the command line options.
This commit is contained in:
@@ -1784,7 +1784,7 @@ void EditorNode::_run(bool p_current, const String &p_custom) {
|
||||
editor_data.save_editor_external_data();
|
||||
}
|
||||
|
||||
if (!_call_build())
|
||||
if (!call_build())
|
||||
return;
|
||||
|
||||
if (bool(EDITOR_DEF("run/output/always_clear_output_on_play", true))) {
|
||||
@@ -2321,7 +2321,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
||||
if (run_native->is_deploy_debug_remote_enabled()) {
|
||||
_menu_option_confirm(RUN_STOP, true);
|
||||
|
||||
if (!_call_build())
|
||||
if (!call_build())
|
||||
break; // build failed
|
||||
|
||||
emit_signal("play_pressed");
|
||||
@@ -4525,7 +4525,7 @@ void EditorNode::add_build_callback(EditorBuildCallback p_callback) {
|
||||
|
||||
EditorBuildCallback EditorNode::build_callbacks[EditorNode::MAX_BUILD_CALLBACKS];
|
||||
|
||||
bool EditorNode::_call_build() {
|
||||
bool EditorNode::call_build() {
|
||||
|
||||
for (int i = 0; i < build_callback_count; i++) {
|
||||
if (!build_callbacks[i]())
|
||||
|
||||
Reference in New Issue
Block a user