mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #108170 from aaronfranke/test-ps-path-func
Use ProjectSettings path functions instead of hard-coded folder names in tests
This commit is contained in:
commit
42f06f6d4d
6 changed files with 18 additions and 13 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,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("/");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue