// // SetupTouchTogglePopup::onTouchMode from 0x10024bc50 to 0x10024bd08 (184 bytes) // // 2 xrefs: // > SetupTouchTogglePopup::init @ 0x10024b780 // > SetupTouchTogglePopup::init @ 0x10024b80c // // 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::onTouchMode(SetupTouchTogglePopup *a1, cocos2d::CCObject *a2) { int v3; // w8 EffectGameObject *m_gameObject; // x9 cocos2d::CCArray *m_gameObjects; // x0 unsigned int v6; // w20 if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 ) v3 = 1; else v3 = 2; if ( a1->m_toggleMode == v3 ) v3 = 0; a1->m_toggleMode = v3; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_touchToggleMode = v3; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) ) { v6 = 0; do *(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v6++) + 1640) = a1->m_toggleMode; while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) ); } } CCMenuItemToggler::toggle(a1->m_toggleOnToggler, a1->m_toggleMode == 1); CCMenuItemToggler::toggle(a1->m_toggleOffToggler, a1->m_toggleMode == 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source