// // cocos2d::CCAnimation::create from 0x100296ae0 to 0x100296bd6 (246 bytes) // // 2 xrefs: // > cocos2d::CCAnimate::reverse @ 0x1003bcb59 // > cocos2d::CCAnimationCache::parseVersion1 @ 0x10046d6fd // // 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 // cocos2d::CCAnimation *__fastcall cocos2d::CCAnimation::create(cocos2d::CCArray *a1, float a2, unsigned int a3) { cocos2d::CCAnimation *v3; // rbx cocos2d::CCObject *v4; // rax cocos2d::CCObject *m_pFrames; // rdi cocos2d::CCObject *v6; // r14 cocos2d::CCObject_vtbl *v7; // rax __int64 copyWithZone_low; // rcx unsigned __int64 v9; // rax unsigned __int64 v10; // rcx v3 = (cocos2d::CCAnimation *)operator new(0x58u); cocos2d::CCObject::CCObject(v3); v3->__vftable = (cocos2d::CCAnimation_vtbl *)off_1008F7808; v3->m_fTotalDelayUnits = 0.0; v3->m_fDuration = 0.0; v3->m_pFrames = nullptr; v3->m_bRestoreOriginalFrame = 0; v3->m_fDelayPerUnit = a2; v3->m_uLoops = a3; v4 = (cocos2d::CCObject *)sub_10071FCE0(a1); m_pFrames = v3->m_pFrames; if ( m_pFrames == v4 ) { v6 = v3->m_pFrames; if ( !m_pFrames ) goto LABEL_13; goto LABEL_9; } v6 = v4; if ( v4 ) { cocos2d::CCObject::retain(v4); m_pFrames = v3->m_pFrames; } if ( m_pFrames ) cocos2d::CCObject::release(m_pFrames); v3->m_pFrames = (cocos2d::CCArray *)v6; if ( v6 ) { LABEL_9: v7 = v6[1].__vftable; copyWithZone_low = LODWORD(v7->copyWithZone); if ( LODWORD(v7->copyWithZone) ) { v9 = (unsigned __int64)v7->~CCObject_0; v10 = v9 + 8 * copyWithZone_low - 8; do { if ( !*(_QWORD *)v9 ) break; v3->m_fTotalDelayUnits = *(float *)(*(_QWORD *)v9 + 64LL) + v3->m_fTotalDelayUnits; v9 += 8LL; } while ( v9 <= v10 ); } } LABEL_13: cocos2d::CCObject::autorelease(v3); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source