From d9eaa3e09307f30aa0f8d1eec2919e277b840a16 Mon Sep 17 00:00:00 2001 From: qarmin Date: Wed, 1 May 2019 14:36:04 +0200 Subject: [PATCH] Fix Remove Missing Project projects on Windows --- editor/project_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 709c2caa966..6de43304938 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -997,7 +997,7 @@ void ProjectManager::_update_project_buttons() { } } for (Map::Element *E = list_all_projects.front(); E; E = E->next()) { - String project_name = E->key().replace("::", "/") + "/project.godot"; + String project_name = E->key().replace(":::", ":/").replace("::", "/") + "/project.godot"; if (!FileAccess::exists(project_name)) { missing_projects = true; break; @@ -1735,7 +1735,7 @@ void ProjectManager::_erase_missing_projects_confirm() { int deleted_projects = 0; int remaining_projects = 0; for (Map::Element *E = list_all_projects.front(); E; E = E->next()) { - String project_name = E->key().replace("::", "/") + "/project.godot"; + String project_name = E->key().replace(":::", ":/").replace("::", "/") + "/project.godot"; if (!FileAccess::exists(project_name)) { deleted_projects++; EditorSettings::get_singleton()->erase("projects/" + E->key());