diff options
| author | Juan Linietsky | 2017-02-15 08:29:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-02-15 08:34:02 -0300 |
| commit | da11d6d9e868db674cb18ced0544c84e3356be8d (patch) | |
| tree | cfc9ce1235e34c0fee160e00c340a1163474a024 /core/io/resource_loader.cpp | |
| parent | d7fd86d51aadda665667c88dca657993f0de14d7 (diff) | |
| download | godot-da11d6d9e868db674cb18ced0544c84e3356be8d.tar.gz godot-da11d6d9e868db674cb18ced0544c84e3356be8d.tar.zst godot-da11d6d9e868db674cb18ced0544c84e3356be8d.zip | |
Diffstat (limited to 'core/io/resource_loader.cpp')
| -rw-r--r-- | core/io/resource_loader.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 3199f05ff..b6d28bccf 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -61,6 +61,7 @@ bool ResourceFormatLoader::recognize_path(const String& p_path,const String& p_f for (List<String>::Element *E=extensions.front();E;E=E->next()) { + if (E->get().nocasecmp_to(extension)==0) return true; } @@ -191,12 +192,15 @@ RES ResourceLoader::load(const String &p_path, const String& p_type_hint, bool p for (int i=0;i<loader_count;i++) { - if (!loader[i]->recognize_path(local_path,p_type_hint)) + if (!loader[i]->recognize_path(local_path,p_type_hint)) { + print_line("path not recognized"); continue; + } found=true; RES res = loader[i]->load(local_path,local_path,r_error); - if (res.is_null()) + if (res.is_null()) { continue; + } if (!p_no_cache) res->set_path(local_path); #ifdef TOOLS_ENABLED |
