// // GJSmartTemplate::dataLoaded from 0x53b310 to 0x53b46c (348 bytes) // // 1 xrefs: // > GJSmartTemplate::createWithCoder @ 0x53b498 // // 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 GJSmartTemplate::dataLoaded(GJSmartTemplate *a1, DS_Dictionary *a2) { cocos2d::CCDictionary *DictForKey; // r0 cocos2d::CCDictionary *v5; // r6 cocos2d::CCDictionary *m_prefabArrays; // r0 unsigned int v7; // r9 cocos2d::CCArray *v8; // r10 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r0 _DWORD *v12; // r2 int *v13; // r6 int *v14; // r11 int v15; // r0 int v16; // t1 std::string v17; // [sp+4h] [bp-10h] BYREF char v18; // [sp+8h] [bp-Ch] BYREF a1->m_nameIndex = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[1]); DS_Dictionary::getStringForKey((DS_Dictionary *)&v18, (const char *)a2); sub_774794(&a1->m_templateName, &v18); sub_774008(&v18); a1->m_allowRotation = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[7]) != 0; a1->m_allowFlipX = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[8]) != 0; a1->m_allowFlipY = DS_Dictionary::getIntegerForKey(a2, "6") != 0; a1->m_ignoreCorners = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[10]) != 0; DictForKey = DS_Dictionary::getDictForKey(a2, (const char *)&aO1i2r3e45s7t89[5], 0); v5 = DictForKey; if ( a1->m_prefabArrays != DictForKey ) { if ( DictForKey ) cocos2d::CCObject::retain(DictForKey); m_prefabArrays = a1->m_prefabArrays; if ( m_prefabArrays ) cocos2d::CCObject::release(m_prefabArrays); a1->m_prefabArrays = v5; } v7 = 0; v8 = cocos2d::CCDictionary::allKeys(a1->m_prefabArrays); while ( v7 < cocos2d::CCArray::count(v8) ) { v9 = cocos2d::CCArray::stringAtIndex(v8, v7); CString = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)&v17, CString); sub_775C20(&v18); GJSmartTemplate::saveRemap((cocos2d::CCDictionary **)a1); sub_774008(&v18); v11 = cocos2d::CCDictionary::objectForKey(a1->m_prefabArrays, &v17); if ( v11 ) { v12 = *(_DWORD **)(v11 + 52); if ( *v12 ) { v13 = (int *)v12[3]; v14 = &v13[*v12 - 1]; while ( v13 <= v14 ) { v16 = *v13++; v15 = v16; if ( !v16 ) break; sub_775D40(v15 + 52, &v17); } } } ++v7; sub_774008(&v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source