You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
--single-window is passed through project manager.
This means you can start godot with --single-window
This commit is contained in:
committed by
Rémi Verschelde
parent
173c0f8737
commit
2b292a1a2a
@@ -2051,6 +2051,10 @@ void ProjectManager::_open_selected_projects() {
|
||||
args.push_back("--disable-crash-handler");
|
||||
}
|
||||
|
||||
if (OS::get_singleton()->is_single_window()) {
|
||||
args.push_back("--single-window");
|
||||
}
|
||||
|
||||
String exec = OS::get_singleton()->get_executable_path();
|
||||
Error err = OS::get_singleton()->create_process(exec, args);
|
||||
ERR_FAIL_COND(err);
|
||||
|
||||
Reference in New Issue
Block a user