// // CCAnimateFrameCache::addDict from 0x3c4338 to 0x3c4630 (760 bytes) // // 1 xrefs: // > CCAnimateFrameCache::addSpriteFramesWithFile @ 0x3c46e4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:46:33 +0000 // cocos2d::CCObject *__fastcall CCAnimateFrameCache::addDict( CCAnimateFrameCache *this, DS_Dictionary *a2, const char *a3) { cocos2d::CCObject *v6; // r0 int v7; // r8 size_t v8; // r0 int v9; // r7 char *v10; // r1 cocos2d::CCArray *v11; // r0 cocos2d::CCObject *v12; // r11 const char *v13; // r6 cocos2d::CCString *v14; // r0 size_t v15; // r0 char *v16; // r1 DS_Dictionary *v17; // r1 cocos2d::CCObject *Description; // r0 cocos2d::CCDictionary *v19; // r0 cocos2d::CCObject *v21; // r0 int v22; // r7 cocos2d::CCDictionary *Key; // r0 cocos2d::CCObject *v24; // r8 char *v25; // r1 cocos2d::CCObject *v26; // r11 cocos2d::CCObject *v27; // r11 int v28; // r3 cocos2d::CCObject *v29; // r9 cocos2d::CCObject *v30; // [sp+0h] [bp-84h] int NumKeys; // [sp+4h] [bp-80h] cocos2d::CCObject *v32; // [sp+4h] [bp-80h] const char *v33; // [sp+8h] [bp-7Ch] int v34; // [sp+8h] [bp-7Ch] const char *CString; // [sp+14h] [bp-70h] char v36; // [sp+28h] [bp-5Ch] BYREF char v37; // [sp+29h] [bp-5Bh] BYREF char *v38; // [sp+30h] [bp-54h] _BYTE v39[12]; // [sp+34h] [bp-50h] BYREF int v40[3]; // [sp+40h] [bp-44h] BYREF _BYTE v41[12]; // [sp+4Ch] [bp-38h] BYREF int v42[3]; // [sp+58h] [bp-2Ch] BYREF unsigned __int8 v43; // [sp+64h] [bp-20h] BYREF char v44; // [sp+65h] [bp-1Fh] BYREF int v45; // [sp+68h] [bp-1Ch] char *v46; // [sp+6Ch] [bp-18h] int v47; // [sp+70h] [bp-14h] BYREF int v48; // [sp+74h] [bp-10h] char *v49; // [sp+78h] [bp-Ch] v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(this); v47 = 0; v48 = 0; v49 = nullptr; v7 = *((_DWORD *)this + 15); v30 = v6; v8 = strlen(a3); std::string::__init(&v47, a3, v8); cocos2d::CCDictionary::setObject(v7, v30); std::string::~string((int)&v47); v9 = 0; DS_Dictionary::stepIntoSubDictWithKey(a2, "animationContainer"); NumKeys = DS_Dictionary::getNumKeys(a2); while ( v9 != NumKeys ) { DS_Dictionary::getKey((DS_Dictionary *)&v43, (unsigned int)a2); if ( (v43 & 1) != 0 ) v10 = v46; else v10 = &v44; v11 = (cocos2d::CCArray *)DS_Dictionary::stepIntoSubDictWithKey(a2, v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); cocos2d::CCDictionary::setObject(*((_DWORD *)this + 13), v12); v13 = nullptr; v33 = (const char *)DS_Dictionary::getNumKeys(a2); while ( v13 != v33 ) { v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"sprite_%i", v13); CString = (const char *)cocos2d::CCString::getCString(v14); v47 = 0; v48 = 0; v49 = nullptr; v15 = strlen(CString); std::string::__init(&v47, CString, v15); if ( (v47 & 1) != 0 ) v16 = v49; else v16 = (char *)&v47 + 1; DS_Dictionary::stepIntoSubDictWithKey(a2, v16); Description = SpriteDescription::createDescription(a2, v17); cocos2d::CCArray::addObject(v12, Description); DS_Dictionary::stepOutOfSubDict(a2); ++v13; std::string::~string((int)&v47); } DS_Dictionary::stepOutOfSubDict(a2); ++v9; std::string::~string((int)&v43); } DS_Dictionary::stepBackToRootSubDict(a2); v19 = (cocos2d::CCDictionary *)DS_Dictionary::stepIntoSubDictWithKey(a2, "usedTextures"); if ( v19 ) { v21 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v19); v47 = 0; v48 = 0; v49 = nullptr; v32 = v21; std::string::__init(&v47, "usedTextures", 0xCu); cocos2d::CCDictionary::setObject((int)v30, v32); v22 = 0; std::string::~string((int)&v47); v34 = DS_Dictionary::getNumKeys(a2); while ( v22 != v34 ) { Key = (cocos2d::CCDictionary *)DS_Dictionary::getKey((DS_Dictionary *)&v36, (unsigned int)a2); v24 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(Key); cocos2d::CCDictionary::setObject((int)v32, v24); if ( (v36 & 1) != 0 ) v25 = v38; else v25 = &v37; DS_Dictionary::stepIntoSubDictWithKey(a2, v25); DS_Dictionary::getStringForKey((DS_Dictionary *)v39, (const char *)a2); v26 = (cocos2d::CCObject *)cocos2d::CCString::create(v39); memset(v40, 0, sizeof(v40)); std::string::__init(v40, "texture", 7u); cocos2d::CCDictionary::setObject((int)v24, v26); std::string::~string((int)v40); std::string::~string((int)v39); DS_Dictionary::getStringForKey((DS_Dictionary *)v41, (const char *)a2); v27 = (cocos2d::CCObject *)cocos2d::CCString::create(v41); memset(v42, 0, sizeof(v42)); std::string::__init(v42, "tag", 3u); cocos2d::CCDictionary::setObject((int)v24, v27); std::string::~string((int)v42); std::string::~string((int)v41); DS_Dictionary::getStringForKey((DS_Dictionary *)&v43, (const char *)a2); if ( (v43 & 1) != 0 ) v28 = v45; else v28 = (int)v43 >> 1; if ( v28 ) { v29 = (cocos2d::CCObject *)cocos2d::CCString::create(&v43); v47 = 0; v48 = 0; v49 = nullptr; std::string::__init(&v47, "customID", 8u); cocos2d::CCDictionary::setObject((int)v24, v29); std::string::~string((int)&v47); } DS_Dictionary::stepOutOfSubDict(a2); ++v22; std::string::~string((int)&v43); std::string::~string((int)&v36); } } return v30; }
GD Web Decomp Icon

GD Web Decomp

Raw Source