1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Merge pull request #52714 from m4gr3d/provide_getter_for_project_data_dir_3x

This commit is contained in:
Rémi Verschelde
2021-10-05 21:02:41 +02:00
committed by GitHub
8 changed files with 33 additions and 12 deletions

View File

@@ -49,6 +49,15 @@ ProjectSettings *ProjectSettings::get_singleton() {
return singleton;
}
String ProjectSettings::get_project_data_dir_name() const {
return ".import";
}
String ProjectSettings::get_project_data_path() const {
String project_data_dir_name = get_project_data_dir_name();
return "res://" + project_data_dir_name;
}
String ProjectSettings::get_resource_path() const {
return resource_path;
};