| 78 | } |
| 79 | |
| 80 | void _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 | |
| 90 | Ref<ResourceInfo> TextureLoaderCompat::_get_resource_info(const String &original_path, TextureLoaderCompat::TextureVersionType t) { |
| 91 | Ref<ResourceInfo> info; |
no test coverage detected