aboutsummaryrefslogtreecommitdiff
path: root/core/io/resource_format_binary.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-16 09:28:49 -0300
committerGitHub2016-07-16 09:28:49 -0300
commit24d86e33a6ef0d787a37639831ae582a397d821c (patch)
treeaa25cae9aa216686dbabbd9211ded65f94b924de /core/io/resource_format_binary.cpp
parentf07d4f556a875155625503b7217e5955c2a1d5c2 (diff)
parent1492fd846073a4fa643365a8a5d4e021868c0e48 (diff)
downloadgodot-24d86e33a6ef0d787a37639831ae582a397d821c.tar.gz
godot-24d86e33a6ef0d787a37639831ae582a397d821c.tar.zst
godot-24d86e33a6ef0d787a37639831ae582a397d821c.zip
Merge pull request #5467 from RandomShaper/enhance-tidy-extensions
Enhance/tidy file extensions management
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r--core/io/resource_format_binary.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp
index 58f3a4df2..343a54e0d 100644
--- a/core/io/resource_format_binary.cpp
+++ b/core/io/resource_format_binary.cpp
@@ -1105,14 +1105,9 @@ void ResourceFormatLoaderBinary::get_recognized_extensions_for_type(const String
for(List<String>::Element *E=extensions.front();E;E=E->next()) {
String ext = E->get().to_lower();
- if (ext=="res")
- continue;
-// p_extensions->push_back("x"+ext);
p_extensions->push_back(ext);
}
- p_extensions->push_back("res");
-
}
void ResourceFormatLoaderBinary::get_recognized_extensions(List<String> *p_extensions) const{
@@ -1122,12 +1117,9 @@ void ResourceFormatLoaderBinary::get_recognized_extensions(List<String> *p_exten
for(List<String>::Element *E=extensions.front();E;E=E->next()) {
String ext = E->get().to_lower();
- if (ext=="res")
- continue;
p_extensions->push_back(ext);
}
- p_extensions->push_back("res");
}
bool ResourceFormatLoaderBinary::handles_type(const String& p_type) const{
@@ -2270,16 +2262,8 @@ bool ResourceFormatSaverBinary::recognize(const RES& p_resource) const {
void ResourceFormatSaverBinary::get_recognized_extensions(const RES& p_resource,List<String> *p_extensions) const {
-
- //here comes the sun, lalalala
String base = p_resource->get_base_extension().to_lower();
- if (base!="res") {
-
- p_extensions->push_back(base);
- }
-
- p_extensions->push_back("res");
-
+ p_extensions->push_back(base);
}