// // cocos2d::CCAnimationCache::addAnimationsWithDictionary from 0x7f05e0 to 0x7f072e (334 bytes) // // 1 xrefs: // > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0x7f0782 // // 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 12:01:04 +0000 // cocos2d::CCFileUtils *__fastcall cocos2d::CCAnimationCache::addAnimationsWithDictionary( cocos2d::CCAnimationCache *this, cocos2d::CCDictionary *a2, const char *a3) { cocos2d::CCDictionary *v6; // r7 cocos2d::CCFileUtils *result; // r0 int v8; // r11 int v9; // r2 int v10; // r3 cocos2d::CCString *v11; // r0 int v12; // r8 int v13; // r5 _DWORD *v14; // r2 cocos2d::CCString **v15; // r4 cocos2d::CCString **v16; // r5 cocos2d::CCString *v17; // r11 cocos2d::CCString *v18; // t1 char *CString; // r0 cocos2d::CCSpriteFrameCache *v20; // r11 cocos2d::CCSpriteFrameCache *v21; // r0 char *v22; // r1 cocos2d::CCSpriteFrameCache *v23; // [sp+0h] [bp-1Ch] cocos2d::CCSpriteFrameCache *v24; // [sp+0h] [bp-1Ch] int v25; // [sp+4h] [bp-18h] int v26; // [sp+8h] [bp-14h] BYREF int v27; // [sp+Ch] [bp-10h] int v28; // [sp+10h] [bp-Ch] v26 = 0; v27 = 0; v28 = 0; std::string::__init(&v26, "animations", 0xAu); v6 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((int)a2, (int)&v26); result = (cocos2d::CCFileUtils *)std::string::~string((int)&v26); if ( v6 ) { v26 = 0; v27 = 0; v28 = 0; std::string::__init(&v26, "properties", 0xAu); v8 = cocos2d::CCDictionary::objectForKey((int)a2, (int)&v26); std::string::~string((int)&v26); if ( !v8 ) return cocos2d::CCAnimationCache::parseVersion1(this, v6); v26 = 0; v27 = 0; v28 = 0; std::string::__init(&v26, "format", 6u); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v8, (int)&v26, v9, v10); v12 = cocos2d::CCString::intValue(v11); std::string::~string((int)&v26); v26 = 0; v27 = 0; v28 = 0; std::string::__init(&v26, "spritesheets", 0xCu); v13 = cocos2d::CCDictionary::objectForKey(v8, (int)&v26); result = (cocos2d::CCFileUtils *)std::string::~string((int)&v26); if ( v13 ) { v14 = *(_DWORD **)(v13 + 52); if ( *v14 ) { v15 = (cocos2d::CCString **)v14[3]; v16 = &v15[*v14] + 0x3FFFFFFF; while ( v15 <= v16 ) { v18 = *v15++; v17 = v18; if ( !v18 ) break; if ( a3 ) { v25 = cocos2d::CCFileUtils::sharedFileUtils(result); v23 = *(cocos2d::CCSpriteFrameCache **)(*(_DWORD *)v25 + 40); CString = cocos2d::CCString::getCString(v17); v20 = (cocos2d::CCSpriteFrameCache *)((int (__fastcall *)(int, char *, const char *))v23)(v25, CString, a3); v21 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v20); v22 = (char *)v20; } else { v24 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result); v22 = cocos2d::CCString::getCString(v17); v21 = v24; } result = (cocos2d::CCFileUtils *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v21, v22); } } } if ( v12 == 1 ) { return cocos2d::CCAnimationCache::parseVersion1(this, v6); } else if ( v12 == 2 ) { return cocos2d::CCAnimationCache::parseVersion2(this, v6); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source