| 184 | } |
| 185 | |
| 186 | Ref<Resource> ResourceCompatLoader::fake_load(const String &p_path, const String &p_type_hint, Error *r_error) { |
| 187 | auto loadr = get_loader_for_path(p_path, p_type_hint); |
| 188 | FAIL_LOADER_NOT_FOUND(loadr); |
| 189 | Ref<Resource> res = loadr->custom_load(p_path, {}, ResourceInfo::LoadType::FAKE_LOAD, r_error, false, ResourceFormatLoader::CACHE_MODE_IGNORE); |
| 190 | if (res.is_valid() && res->get_path().is_empty()) { |
| 191 | res->set_path_cache(p_path); |
| 192 | } |
| 193 | return res; |
| 194 | } |
| 195 | |
| 196 | Ref<Resource> ResourceCompatLoader::non_global_load(const String &p_path, const String &p_type_hint, Error *r_error) { |
| 197 | auto loader = get_loader_for_path(p_path, p_type_hint); |
nothing calls this directly
no test coverage detected