From 5fbcd8f9dffe3f505dbda17e52b5bc0339188e94 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 5 Jul 2020 20:55:43 -0400 Subject: Rename the ".import" folder to ".godot/imported" --- core/io/resource_importer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/io') 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 &p_a, const Ref &p_b) const { @@ -374,7 +375,7 @@ Ref 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 { -- cgit v1.2.3