1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-05 17:15:09 +00:00

Make the project data directory customizable.

This commit is contained in:
Fredia Huya-Kouadio
2021-09-10 10:52:41 -07:00
parent df1eebd8d8
commit d1808f0a7f
8 changed files with 55 additions and 29 deletions

View File

@@ -568,7 +568,7 @@ void EditorFileDialog::_item_list_item_rmb_selected(int p_item, const Vector2 &p
continue;
}
Dictionary item_meta = item_list->get_item_metadata(i);
if (item_meta["path"] == ProjectSettings::get_singleton()->get_project_data_path()) {
if (String(item_meta["path"]).begins_with(ProjectSettings::get_singleton()->get_project_data_path())) {
allow_delete = false;
break;
}