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

Method get_classes_used

compat/resource_compat_binary.cpp:1097–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097void ResourceLoaderCompatBinary::get_classes_used(Ref<FileAccess> p_f, HashSet<StringName> *p_classes) {
1098 open(p_f, false, true);
1099 if (error) {
1100 return;
1101 }
1102
1103 for (const IntResource &res : internal_resources) {
1104 p_f->seek(res.offset);
1105 String t = get_unicode_string();
1106 if (!p_f->get_error() && t != String() /*&& ClassDB::class_exists(t)*/) {
1107 p_classes->insert(t);
1108 }
1109 }
1110}
1111
1112void ResourceLoaderCompatBinary::get_dependencies(Ref<FileAccess> p_f, List<String> *p_dependencies, bool p_add_types) {
1113 open(p_f, false, true);

Callers

nothing calls this directly

Calls 6

seekMethod · 0.45
get_errorMethod · 0.45
insertMethod · 0.45
loadMethod · 0.45
get_resourceMethod · 0.45
get_typeMethod · 0.45

Tested by

no test coverage detected