1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Provide a getter for the project data directory.

This commit is contained in:
ne0fhyk
2021-09-10 08:32:29 -07:00
parent 729461b2a4
commit 69f890ff11
18 changed files with 67 additions and 34 deletions

View File

@@ -588,7 +588,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 (String(item_meta["path"]).begins_with("res://.godot")) {
if (String(item_meta["path"]).begins_with(ProjectSettings::get_singleton()->get_project_data_path())) {
allow_delete = false;
break;
}