// // cocos2d::CCAnimation::initWithAnimationFrames from 0x1001a43b8 to 0x1001a4438 (128 bytes) // // 2 xrefs: // > cocos2d::CCAnimation::create @ 0x1001a4380 // > cocos2d::CCAnimation::copyWithZone @ 0x1001a4514 // // 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 // bool __fastcall cocos2d::CCAnimation::initWithAnimationFrames( cocos2d::CCAnimation *a1, cocos2d::CCArray *a2, float a3, unsigned int a4) { cocos2d::CCObject *v5; // x0 cocos2d::CCArray *m_pFrames; // x8 cocos2d::ccArray *data; // x8 __int64 num; // x9 unsigned __int64 arr; // x8 unsigned __int64 v10; // x9 a1->m_fDelayPerUnit = a3; a1->m_uLoops = a4; v5 = (cocos2d::CCObject *)sub_10024A2D8(a2); sub_10015C71C((__int64)a1, v5); m_pFrames = a1->m_pFrames; if ( m_pFrames ) { data = m_pFrames->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v10 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; a1->m_fTotalDelayUnits = *(float *)(*(_QWORD *)arr + 64LL) + a1->m_fTotalDelayUnits; arr += 8LL; } while ( arr <= v10 ); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source