// // SetupTouchTogglePopup::onTouchMode from 0x140464be0 to 0x140464ca4 (196 bytes) // // 3 xrefs: // > SetupTouchTogglePopup::init @ 0x140464615 // > SetupTouchTogglePopup::init @ 0x1404646c2 // > @ 0x1406db00c // // 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::onTouchMode(SetupTouchTogglePopup *a1, cocos2d::CCObject *a2) { unsigned int v3; // edi bool v4; // zf EffectGameObject *m_gameObject; // rax int v6; // ecx cocos2d::CCArray *m_gameObjects; // rcx struct cocos2d::CCObject *v8; // rax v3 = 0; v4 = a2->getTag(a2) == 1; m_gameObject = a1->m_gameObject; v6 = !v4 + 1; if ( a1->m_toggleMode == v6 ) v6 = 0; a1->m_toggleMode = v6; if ( m_gameObject ) { m_gameObject->m_touchToggleMode = v6; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { do { v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v3++); v8[29].m_uIndexInArray = a1->m_toggleMode; } while ( v3 < cocos2d::CCArray::count(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