Use ProjectSettings functions instead of hard-coded folder name in tests
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
@ -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("/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user