// // cocos2d::extension::CCControlSwitch::setOn from 0xd1189c to 0xd11948 (172 bytes) // // 6 xrefs: // > cocos2d::extension::CCControlSwitch::setOn @ 0xd11950 // > cocos2d::extension::CCControlSwitch::ccTouchEnded @ 0xd11bc4 // > cocos2d::extension::CCControlSwitch::ccTouchEnded @ 0xd11c20 // > cocos2d::extension::CCControlSwitch::ccTouchCancelled @ 0xd11c9c // > cocos2d::extension::CCControlSwitch::ccTouchCancelled @ 0xd11cf8 // > @ 0xbefa8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:07:03 +0000 // __int64 __fastcall cocos2d::extension::CCControlSwitch::setOn( cocos2d::extension::CCControlSwitch *this, unsigned __int8 a2, char a3) { float *v4; // x20 float v5; // s2 cocos2d::CCAction *v6; // x0 float *v8; // x0 float v9; // s0 *((_BYTE *)this + 485) = a2; if ( a3 ) { v4 = *((float **)this + 59); if ( a2 ) v5 = v4[153]; else v5 = v4[154]; v6 = (cocos2d::CCAction *)cocos2d::CCActionTween::create( (cocos2d::CCActionTween *)"sliderXPosition", 0.2, (const char *)a2, v4[152], v5); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v6); return (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)this + 1320LL))( this, 256); } else { v8 = *((float **)this + 59); if ( a2 ) v9 = v8[153]; else v9 = v8[154]; cocos2d::extension::CCControlSwitchSprite::setSliderXPosition((cocos2d::extension::CCControlSwitchSprite *)v8, v9); return (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)this + 1320LL))( this, 256); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source