// // cocos2d::CCAnimation::initWithSpriteFrames from 0x100296970 to 0x100296ac1 (337 bytes) // // 1 xrefs: // > cocos2d::CCAnimation::createWithSpriteFrames @ 0x10029693f // // 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 *v4; // rax cocos2d::CCArray *m_pFrames; // rdi cocos2d::CCArray *v6; // r15 cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r12 unsigned __int64 v9; // r13 cocos2d::CCObject *v10; // r15 _QWORD *v11; // r14 cocos2d::CCObject *v12; // rdi cocos2d::CCObject *v13; // rdi a1->m_uLoops = 1; a1->m_fDelayPerUnit = a3; v4 = (cocos2d::CCObject *)sub_10071F9E0(a1, a2); m_pFrames = a1->m_pFrames; if ( m_pFrames != v4 ) { v6 = (cocos2d::CCArray *)v4; if ( v4 ) { cocos2d::CCObject::retain(v4); m_pFrames = a1->m_pFrames; } if ( m_pFrames ) cocos2d::CCObject::release(m_pFrames); a1->m_pFrames = v6; } if ( a2 ) { data = a2->data; if ( data->num ) { arr = data->arr; v9 = (unsigned __int64)&arr[data->num - 1]; do { v10 = *arr; if ( !*arr ) break; v11 = operator new(0x50u); cocos2d::CCObject::CCObject(v11); *v11 = off_1008F77A8; v11[7] = 0; *((_DWORD *)v11 + 16) = 0; v11[9] = 0; *((_DWORD *)v11 + 7) = 14; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)v11[7]; if ( v12 ) cocos2d::CCObject::release(v12); v11[7] = v10; *((_DWORD *)v11 + 16) = 1065353216; v13 = (cocos2d::CCObject *)v11[9]; if ( v13 ) { cocos2d::CCObject::release(v13); v11[9] = 0; } sub_10071FCD0(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