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

Method create_from

compat/optimized_translation_extractor.cpp:628–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628Ref<OptimizedTranslationExtractor> OptimizedTranslationExtractor::create_from(const Ref<OptimizedTranslation> &p_otr) {
629 ERR_FAIL_COND_V_MSG(p_otr.is_null(), Ref<OptimizedTranslationExtractor>(), "p_otr is null");
630 Ref<OptimizedTranslationExtractor> ote;
631 ote.instantiate();
632 ote->set("locale", p_otr->get("locale"));
633 ote->set("hash_table", p_otr->get("hash_table"));
634 ote->set("bucket_table", p_otr->get("bucket_table"));
635 ote->set("strings", p_otr->get("strings"));
636 return ote;
637}
638
639Ref<Resource> TranslationConverterCompat::convert(const Ref<MissingResource> &res, ResourceInfo::LoadType p_type, int ver_major, Error *r_error) {
640 Ref<Translation> ote;

Callers 1

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected