mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Merge pull request #102307 from KoBeWi/so_that's_what_it_does
Setup working directory when quitting to project manager
This commit is contained in:
commit
5696316a89
@ -2069,6 +2069,13 @@ void EditorNode::restart_editor(bool p_goto_project_manager) {
|
||||
|
||||
if (p_goto_project_manager) {
|
||||
args.push_back("--project-manager");
|
||||
|
||||
// Setup working directory.
|
||||
const String exec_dir = OS::get_singleton()->get_executable_path().get_base_dir();
|
||||
if (!exec_dir.is_empty()) {
|
||||
args.push_back("--path");
|
||||
args.push_back(exec_dir);
|
||||
}
|
||||
} else {
|
||||
args.push_back("--path");
|
||||
args.push_back(ProjectSettings::get_singleton()->get_resource_path());
|
||||
|
Loading…
x
Reference in New Issue
Block a user