MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / fake_load

Method fake_load

compat/resource_loader_compat.cpp:186–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186Ref<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
196Ref<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);

Callers

nothing calls this directly

Calls 3

custom_loadMethod · 0.45
is_validMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected