// // cocos2d::CCAnimation::initWithSpriteFrames from 0x1001a4204 to 0x1001a430c (264 bytes) // // 1 xrefs: // > cocos2d::CCAnimation::createWithSpriteFrames @ 0x1001a41d0 // // 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::initWithSpriteFrames(cocos2d::CCAnimation *a1, cocos2d::CCArray *a2, float a3) { cocos2d::CCObject *v5; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x22 unsigned __int64 v9; // x23 cocos2d::CCObject *v10; // x21 void *v11; // x20 cocos2d::CCObject *v12; // x0 a1->m_uLoops = 1; a1->m_fDelayPerUnit = a3; v5 = (cocos2d::CCObject *)sub_10024A15C(a1); sub_10015C71C((__int64)a1, v5); if ( a2 ) { data = a2->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v9 = (unsigned __int64)&arr[num - 1]; do { v10 = *arr; if ( !*arr ) break; v11 = operator new(0x50u); cocos2d::CCObject::CCObject((__int64)v11); *(_QWORD *)v11 = off_1007AD588; *((_QWORD *)v11 + 7) = 0; *((_DWORD *)v11 + 16) = 0; *((_QWORD *)v11 + 9) = 0; *((_DWORD *)v11 + 7) = 14; sub_100004430((__int64)v11, v10); *((_DWORD *)v11 + 16) = 1065353216; v12 = *((cocos2d::CCObject **)v11 + 9); if ( v12 ) { cocos2d::CCObject::release(v12); *((_QWORD *)v11 + 9) = 0; } sub_10024A2D0(a1->m_pFrames, v11); cocos2d::CCObject::release((cocos2d::CCObject *)v11); a1->m_fTotalDelayUnits = a1->m_fTotalDelayUnits + 1.0; ++arr; } while ( (unsigned __int64)arr <= v9 ); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source