// // GameManager::addCustomAnimationFrame from 0x52b3d0 to 0x52b45a (138 bytes) // // 2 xrefs: // > GameManager::setupGameAnimations @ 0x52ba4a // > GameManager::addDuplicateLastFrame @ 0x52e322 // // 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 // int __fastcall GameManager::addCustomAnimationFrame( int result, intptr_t a2, unsigned int a3, cocos2d::CCString *a4, cocos2d::CCString *a5) { int v6; // r7 cocos2d::CCArray *v9; // r8 const std::string *v10; // r1 cocos2d::CCObject *v11; // r0 cocos2d::CCObject *v12; // r0 cocos2d::CCArray *v13; // r6 const std::string *v14; // r1 cocos2d::CCObject *v15; // r0 cocos2d::CCObject *v16; // r1 v6 = result; if ( a4->__vftable[-1].canEncode ) { v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(result + 272), a2); if ( cocos2d::CCArray::count(v9) >= a3 ) { v11 = (cocos2d::CCObject *)cocos2d::CCString::create(a4, v10); result = cocos2d::CCArray::insertObject(v9, v11, a3 - 1); } else { v12 = (cocos2d::CCObject *)cocos2d::CCString::create(a4, v10); result = cocos2d::CCArray::addObject(v9, v12); } } if ( a5->__vftable[-1].canEncode ) { v13 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v6 + 276), a2); if ( cocos2d::CCArray::count(v13) >= a3 ) { v15 = (cocos2d::CCObject *)cocos2d::CCString::create(a5, v14); return cocos2d::CCArray::insertObject(v13, v15, a3 - 1); } else { v16 = (cocos2d::CCObject *)cocos2d::CCString::create(a5, v14); return cocos2d::CCArray::addObject(v13, v16); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source