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

Function _resource_get_class

compat/resource_compat_binary.cpp:2422–2429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2420}
2421
2422static String _resource_get_class(Ref<Resource> p_resource) {
2423 Ref<MissingResource> missing_resource = p_resource;
2424 if (missing_resource.is_valid()) {
2425 return missing_resource->get_original_class();
2426 } else {
2427 return p_resource->get_save_class();
2428 }
2429}
2430
2431/* this is really only appropriate for saving fake-loaded resources right now; don't use it to save anything else*/
2432Error ResourceFormatSaverCompatBinaryInstance::save(const String &p_path, const Ref<Resource> &p_resource, uint32_t p_flags) {

Callers 1

saveMethod · 0.70

Calls 3

get_original_classMethod · 0.80
is_validMethod · 0.45
get_save_classMethod · 0.45

Tested by

no test coverage detected