// // cocos2d::CCSpawn::initWithTwoActions from 0x5b8ce4 to 0x5b8d62 (126 bytes) // // 2 xrefs: // > cocos2d::CCSpawn::createWithTwoActions @ 0x5b8d90 // > cocos2d::CCSpawn::copyWithZone @ 0x5b8ee4 // // 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 cocos2d::CCSpawn::initWithTwoActions( cocos2d::CCSpawn *a1, cocos2d::CCFiniteTimeAction *a2, cocos2d::CCFiniteTimeAction *a3) { float m_fDuration; // s16 float v7; // s17 float v8; // r1 _BOOL4 v9; // r0 cocos2d::CCDelayTime *v10; // r0 cocos2d::CCDelayTime *v11; // r0 m_fDuration = a2->m_fDuration; v7 = a3->m_fDuration; if ( m_fDuration < v7 ) v8 = a3->m_fDuration; else v8 = a2->m_fDuration; v9 = cocos2d::CCActionInterval::initWithDuration(a1, v8); if ( v9 ) { a1[1].__vftable = (cocos2d::CCSpawn_vtbl *)a2; a1[1].m_uID = (unsigned int)a3; if ( m_fDuration <= v7 ) { if ( m_fDuration < v7 ) { v11 = cocos2d::CCDelayTime::create(v7 - m_fDuration); a1[1].__vftable = (cocos2d::CCSpawn_vtbl *)cocos2d::CCSequence::createWithTwoActions(a2, v11); } } else { v10 = cocos2d::CCDelayTime::create(m_fDuration - v7); a1[1].m_uID = (unsigned int)cocos2d::CCSequence::createWithTwoActions(a3, v10); } cocos2d::CCObject::retain((cocos2d::CCObject *)a1[1].__vftable); cocos2d::CCObject::retain((cocos2d::CCObject *)a1[1].m_uID); LOBYTE(v9) = 1; } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source