// // SetupTouchTogglePopup::onControlMode from 0x140464cb0 to 0x140464d65 (181 bytes) // // 3 xrefs: // > SetupTouchTogglePopup::init @ 0x140464835 // > SetupTouchTogglePopup::init @ 0x1404648eb // > @ 0x1406db018 // // 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 SetupTouchTogglePopup::onControlMode(SetupTouchTogglePopup *a1, cocos2d::CCObject *a2) { int v3; // eax EffectGameObject *m_gameObject; // rcx unsigned int v5; // edi cocos2d::CCArray *m_gameObjects; // rcx struct cocos2d::CCObject *v7; // rax v3 = a2->getTag(a2); m_gameObject = a1->m_gameObject; v5 = 0; if ( a1->m_playerMode == v3 ) v3 = 0; a1->m_playerMode = v3; if ( m_gameObject ) { m_gameObject->m_touchPlayerMode = v3; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { do { v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5++); v7[29].m_uUnknown = a1->m_playerMode; } while ( v5 < cocos2d::CCArray::count(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