// // cocos2d::CCMenuItemToggle::activate from 0x18005a220 to 0x18005a2a6 (134 bytes) // // 3 xrefs: // > @ 0x1800f8f88 // > @ 0x1801438a8 // > @ 0x1801b2c64 // // 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 // void __fastcall cocos2d::CCMenuItemToggle::activate(cocos2d::CCMenuItemToggle *this) { unsigned int v2; // eax cocos2d::CCObject *m_pListener; // rcx void (__cdecl *ptr)(cocos2d::CCObject *); // rax struct cocos2d::CCScriptEngineManager *v5; // rax if ( this->m_bEnabled ) { v2 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 48)); ((void (__fastcall *)(cocos2d::CCMenuItemToggle *, _QWORD))this->setSelectedIndex)( this, (this->m_nScriptTapHandler + 1) % v2); } if ( this->m_bEnabled ) { m_pListener = this->m_pListener; if ( m_pListener ) { ptr = this->m_pfnSelector.ptr; if ( ptr ) ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCMenuItemToggle *))ptr)(m_pListener, this); } if ( this->m_eScriptType ) { v5 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItemToggle *))(**(_QWORD **)v5 + 72LL))(*(_QWORD *)v5, this); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source