// // cocos2d::extension::CCControlSwitch::ccTouchEnded from 0x5a4c9c to 0x5a4d28 (140 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCControlSwitch::ccTouchEnded @ 0x5a4d34 // // 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 cocos2d::extension::CCControlSwitch::ccTouchEnded( cocos2d::extension::CCControlSwitch *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { float x; // s16 float v5; // s15 cocos2d::extension::CCControlSwitch *v6; // r0 int v7; // r1 cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF cocos2d::extension::CCControlSwitch::locationFromTouch(&v8, a1, a2); (*(void (__fastcall **)(_DWORD, void *))(*(_DWORD *)a1[1].setMouseEnabled + 472))(a1[1].setMouseEnabled, &unk_9AE0B3); if ( LOBYTE(a1[1].m_nLuaID) ) { x = v8.x; v5 = *(float *)(*((int (__fastcall **)(cocos2d::extension::CCControlSwitch_vtbl *))a1[1].copyWithZone + 39))(a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); v6 = a1; v7 = x >= (float)(v5 * 0.5); } else { v6 = a1; v7 = BYTE1(a1[1].m_nLuaID) ^ 1; } cocos2d::extension::CCControlSwitch::setOn(v6, v7, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source