// // SetupTouchTogglePopup::onControlMode from 0x10024bd80 to 0x10024be2c (172 bytes) // // 2 xrefs: // > SetupTouchTogglePopup::init @ 0x10024b934 // > SetupTouchTogglePopup::init @ 0x10024b9c0 // // 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 SetupTouchTogglePopup::onControlMode(SetupTouchTogglePopup *a1, cocos2d::CCObject *a2) { int v3; // w0 int v4; // w8 EffectGameObject *m_gameObject; // x9 cocos2d::CCArray *m_gameObjects; // x0 unsigned int v7; // w20 v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( a1->m_playerMode == v3 ) v4 = 0; else v4 = v3; a1->m_playerMode = v4; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_touchPlayerMode = v4; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) ) { v7 = 0; do *(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v7++) + 1644) = a1->m_playerMode; while ( v7 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) ); } } CCMenuItemToggler::toggle(a1->m_p1OnlyToggler, a1->m_playerMode == 1); CCMenuItemToggler::toggle(a1->m_p2OnlyToggler, a1->m_playerMode == 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source