summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-07-05 20:55:43 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-09-28 05:23:45 -0400
commit5fbcd8f9dffe3f505dbda17e52b5bc0339188e94 (patch)
tree8883081eff05073806729519eeec8751c484d237 /core/io
parent64d3827b19851e71b61ae144828e0ea8f37b6615 (diff)
Rename the ".import" folder to ".godot/imported"
Diffstat (limited to 'core/io')
-rw-r--r--core/io/resource_importer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_importer.cpp b/core/io/resource_importer.cpp
index 9ed159bd20..4d980bcf1a 100644
--- a/core/io/resource_importer.cpp
+++ b/core/io/resource_importer.cpp
@@ -31,6 +31,7 @@
#include "resource_importer.h"
#include "core/os/os.h"
+#include "core/project_settings.h"
#include "core/variant_parser.h"
bool ResourceFormatImporter::SortImporterByName::operator()(const Ref<ResourceImporter> &p_a, const Ref<ResourceImporter> &p_b) const {
@@ -374,7 +375,7 @@ Ref<ResourceImporter> ResourceFormatImporter::get_importer_by_extension(const St
}
String ResourceFormatImporter::get_import_base_path(const String &p_for_file) const {
- return "res://.import/" + p_for_file.get_file() + "-" + p_for_file.md5_text();
+ return ProjectSettings::IMPORTED_FILES_PATH.plus_file(p_for_file.get_file() + "-" + p_for_file.md5_text());
}
bool ResourceFormatImporter::are_import_settings_valid(const String &p_path) const {