// // GJSmartTemplate::dataLoaded from 0x1000083e8 to 0x1000085dc (500 bytes) // // 1 xrefs: // > GJSmartTemplate::createWithCoder @ 0x1000083d4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJSmartTemplate::dataLoaded(GJSmartTemplate *a1, DS_Dictionary *a2) { cocos2d::CCDictionary *DictForKey; // x0 cocos2d::CCArray *v5; // x20 unsigned int v6; // w21 cocos2d::CCString *v7; // x0 char *CString; // x0 __int64 v9; // x0 unsigned int *v10; // x9 __int64 v11; // x8 unsigned __int64 v12; // x22 unsigned __int64 v13; // x23 std::string __p; // [xsp+0h] [xbp-60h] BYREF std::string __str; // [xsp+18h] [xbp-48h] BYREF a1->m_nameIndex = DS_Dictionary::getIntegerForKey(a2, "1"); DS_Dictionary::getStringForKey(&__str, a2, "2"); if ( a1->m_templateName.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)a1->m_templateName.m_data.m_long.capacitym1); a1->m_templateName = (std::string)__str; a1->m_allowRotation = DS_Dictionary::getIntegerForKey(a2, "4") != 0; a1->m_allowFlipX = DS_Dictionary::getIntegerForKey(a2, "5") != 0; a1->m_allowFlipY = DS_Dictionary::getIntegerForKey(a2, "6") != 0; a1->m_ignoreCorners = DS_Dictionary::getIntegerForKey(a2, "7") != 0; DictForKey = DS_Dictionary::getDictForKey(a2, "3", 0); sub_100004430((__int64)a1, DictForKey); v5 = cocos2d::CCDictionary::allKeys(a1->m_prefabArrays); if ( (unsigned int)sub_10024A36C(v5) ) { v6 = 0; do { v7 = cocos2d::CCArray::stringAtIndex(v5, v6); CString = (char *)cocos2d::CCString::getCString(v7); sub_100009900((int)&__str, CString); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, __str.__r_.__value_.__l.__data_); else __p = __str; GJSmartTemplate::saveRemap(a1, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v9 = cocos2d::CCDictionary::objectForKey_1(a1->m_prefabArrays, &__str); if ( v9 ) { v10 = *(unsigned int **)(v9 + 56); v11 = *v10; if ( (_DWORD)v11 ) { v12 = *((_QWORD *)v10 + 2); v13 = v12 + 8 * v11 - 8; do { if ( !*(_QWORD *)v12 ) break; std::string::operator=((std::string *)(*(_QWORD *)v12 + 56LL), &__str); v12 += 8LL; } while ( v12 <= v13 ); } } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); ++v6; } while ( v6 < (unsigned int)sub_10024A36C(v5) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source