Use ProjectSettings functions instead of hard-coded folder name in tests

This commit is contained in:
Aaron Franke
2025-07-01 11:35:20 -07:00
parent ab6c6eece8
commit 3c5df91a90
6 changed files with 18 additions and 13 deletions

View File

@ -65,6 +65,7 @@ String ProjectSettings::get_resource_path() const {
return resource_path;
}
// This returns paths like "res://.godot/imported".
String ProjectSettings::get_imported_files_path() const {
return get_project_data_path().path_join("imported");
}

View File

@ -49,6 +49,7 @@ class ProjectSettings : public Object {
public:
typedef HashMap<String, Variant> CustomMap;
// This constant is used to make the ".godot" folder and paths like "res://.godot/editor".
static inline const String PROJECT_DATA_DIR_NAME_SUFFIX = "godot";
static inline const String EDITOR_SETTING_OVERRIDE_PREFIX = PNAME("editor_overrides") + String("/");