// // cocos2d::CCAnimation::initWithAnimationFrames from 0x100296bf0 to 0x100296c87 (151 bytes) // // 1 xrefs: // > cocos2d::CCAnimationCache::parseVersion2 @ 0x10046db24 // // 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; // rax cocos2d::CCArray *m_pFrames; // rdi cocos2d::CCArray *v7; // r14 cocos2d::ccArray *data; // rax __int64 num; // rcx unsigned __int64 arr; // rax unsigned __int64 v11; // rcx a1->m_fDelayPerUnit = a3; a1->m_uLoops = a4; v5 = (cocos2d::CCObject *)sub_10071FCE0(a2); m_pFrames = a1->m_pFrames; if ( m_pFrames == v5 ) { v7 = a1->m_pFrames; if ( !m_pFrames ) return 1; goto LABEL_9; } v7 = (cocos2d::CCArray *)v5; if ( v5 ) { cocos2d::CCObject::retain(v5); m_pFrames = a1->m_pFrames; } if ( m_pFrames ) cocos2d::CCObject::release(m_pFrames); a1->m_pFrames = v7; if ( v7 ) { LABEL_9: data = v7->data; num = data->num; if ( data->num ) { arr = (unsigned __int64)data->arr; v11 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; a1->m_fTotalDelayUnits = *(float *)(*(_QWORD *)arr + 64LL) + a1->m_fTotalDelayUnits; arr += 8LL; } while ( arr <= v11 ); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source