// // CCAnimateFrameCache::addDict from 0x3c49c0 to 0x3c4b2a (362 bytes) // // 1 xrefs: // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x3c4e6a // // 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::CCDictionary *__fastcall CCAnimateFrameCache::addDict( CCAnimateFrameCache *this, cocos2d::CCDictionary *a2, const char *a3) { int v4; // r9 size_t v6; // r0 cocos2d::CCDictionary *v7; // r10 unsigned int v8; // r6 cocos2d::CCArray *v9; // r9 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r7 size_t v13; // r0 cocos2d::CCDictionary *v14; // r11 cocos2d::CCArray *v15; // r0 cocos2d::CCObject *v16; // r0 SpriteDescription *v17; // r3 size_t v18; // r0 const char *v19; // r7 cocos2d::CCString *v20; // r0 const char *v21; // r0 size_t v22; // r0 cocos2d::CCDictionary *v23; // r1 cocos2d::CCObject *Description; // r0 cocos2d::CCObject *v26; // [sp+4h] [bp-28h] SpriteDescription *v28; // [sp+14h] [bp-18h] SpriteDescription *v29; // [sp+14h] [bp-18h] SpriteDescription *v30; // [sp+14h] [bp-18h] int v31; // [sp+18h] [bp-14h] BYREF int v32; // [sp+1Ch] [bp-10h] int v33; // [sp+20h] [bp-Ch] v4 = *((_DWORD *)this + 15); v31 = 0; v32 = 0; v33 = 0; v6 = strlen(a3); std::string::__init(&v31, a3, v6); cocos2d::CCDictionary::setObject(v4, a2); std::string::~string((int)&v31); v31 = 0; v32 = 0; v33 = 0; std::string::__init(&v31, "animationContainer", 0x12u); v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a2, &v31); std::string::~string((int)&v31); v8 = 0; v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v7); while ( v8 < cocos2d::CCArray::count(v9) ) { v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, v8); CString = (const char *)cocos2d::CCString::getCString(v10); v31 = 0; v32 = 0; v33 = 0; v12 = CString; v13 = strlen(CString); std::string::__init(&v31, v12, v13); v14 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v7, &v31); v15 = (cocos2d::CCArray *)std::string::~string((int)&v31); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); v31 = 0; v32 = 0; v17 = *((SpriteDescription **)this + 13); v33 = 0; v28 = v17; v26 = v16; v18 = strlen(v12); std::string::__init(&v31, v12, v18); cocos2d::CCDictionary::setObject((int)v28, v26); v19 = nullptr; std::string::~string((int)&v31); while ( (unsigned int)v19 < cocos2d::CCDictionary::count(v14) ) { v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"sprite_%i", v19); v21 = (const char *)cocos2d::CCString::getCString(v20); v31 = 0; v32 = 0; v33 = 0; v29 = (SpriteDescription *)v21; v22 = strlen(v21); std::string::__init(&v31, v29, v22); v30 = (SpriteDescription *)cocos2d::CCDictionary::objectForKey(v14, &v31); std::string::~string((int)&v31); ++v19; Description = SpriteDescription::createDescription(v30, v23); cocos2d::CCArray::addObject(v26, Description); } ++v8; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source