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

Function _set_resource_info

compat/texture_loader_compat.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void _set_resource_info(Ref<ResourceInfo> &info, const String &original_path, TextureLoaderCompat::TextureVersionType t) {
81 if (!info.is_valid()) {
82 info.instantiate();
83 }
84 info->ver_major = TextureLoaderCompat::get_ver_major_from_textype(t);
85 info->type = TextureLoaderCompat::get_type_name_from_textype(t);
86 info->resource_format = "Texture";
87 info->original_path = original_path;
88}
89
90Ref<ResourceInfo> TextureLoaderCompat::_get_resource_info(const String &original_path, TextureLoaderCompat::TextureVersionType t) {
91 Ref<ResourceInfo> info;

Callers 2

get_resource_infoMethod · 0.85
_get_resource_infoMethod · 0.85

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected