// // SetupTouchTogglePopup::onTouchMode from 0x1002b94f0 to 0x1002b95b4 (196 bytes) // // 2 xrefs: // > SetupTouchTogglePopup::init @ 0x1002b8e92 // > SetupTouchTogglePopup::init @ 0x1002b8f3b // // 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; // ecx int v4; // eax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v7; // r14d v3 = (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1) + 1; v4 = 0; if ( a1->m_toggleMode != v3 ) v4 = v3; a1->m_toggleMode = v4; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_touchToggleMode = v4; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v7 = 0; do *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v7++) + 1640) = a1->m_toggleMode; while ( v7 < (unsigned int)sub_100720070(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