aboutsummaryrefslogtreecommitdiff
path: root/core/io/resource_loader.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-04-23 10:32:52 +0200
committerRémi Verschelde2017-04-23 11:17:32 +0200
commit515f92d03b6bb4e8a42d5b88d603c96c69d233a4 (patch)
treeca6fbc8aa59e0e25d1ca5cf31f090f0f6bcde9ee /core/io/resource_loader.cpp
parentb474646de081084dd691648f87d6057b77fbd819 (diff)
downloadgodot-515f92d03b6bb4e8a42d5b88d603c96c69d233a4.tar.gz
godot-515f92d03b6bb4e8a42d5b88d603c96c69d233a4.tar.zst
godot-515f92d03b6bb4e8a42d5b88d603c96c69d233a4.zip
Fix property warnings and hide some debug prints
"ALL IS GOOD" was a lie. In particular, removes verbose "path not recognized" false positive. The actual logic is to (somewhat naively) check all ResourceFormatLoaders and to pick the first good match, so no need to warn about the formats that do not match the type hint.
Diffstat (limited to 'core/io/resource_loader.cpp')
-rw-r--r--core/io/resource_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp
index 3b43492bc..234d71cb6 100644
--- a/core/io/resource_loader.cpp
+++ b/core/io/resource_loader.cpp
@@ -179,10 +179,10 @@ RES ResourceLoader::load(const String &p_path, const String &p_type_hint, bool p
print_line("load resource: " + local_path);
bool found = false;
+ // Try all loaders and pick the first match for the type hint
for (int i = 0; i < loader_count; i++) {
if (!loader[i]->recognize_path(local_path, p_type_hint)) {
- print_line("path not recognized");
continue;
}
found = true;