// // cocos2d::extension::CCControlSwitch::setOn from 0x7aa7fc to 0x7aa852 (86 bytes) // // 3 xrefs: // > cocos2d::extension::CCControlSwitch::setOn @ 0x7aa85e // > cocos2d::extension::CCControlSwitch::ccTouchEnded @ 0x7aaa20 // > cocos2d::extension::CCControlSwitch::ccTouchCancelled @ 0x7aaabc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:02 +0000 // int __fastcall cocos2d::extension::CCControlSwitch::setOn(cocos2d::extension::CCControlSwitch *this, int a2, int a3) { int v4; // r4 float v5; // r3 cocos2d::CCAction *v6; // r0 float v7; // r1 float savedregs; // [sp+0h] [bp+0h] *((_BYTE *)this + 365) = a2; v4 = *((_DWORD *)this + 89); if ( a3 ) { if ( a2 ) v5 = *(float *)(v4 + 516); else v5 = *(float *)(v4 + 520); v6 = (cocos2d::CCAction *)cocos2d::CCActionTween::create( (cocos2d::CCActionTween *)0x3E4CCCCD, COERCE_FLOAT("sliderXPosition"), *(const char **)(v4 + 512), v5, savedregs); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v6); } else { if ( a2 ) v7 = *(float *)(v4 + 516); else v7 = *(float *)(v4 + 520); cocos2d::extension::CCControlSwitchSprite::setSliderXPosition( *((cocos2d::extension::CCControlSwitchSprite **)this + 89), v7); } return (*(int (__fastcall **)(cocos2d::extension::CCControlSwitch *, int))(*(_DWORD *)this + 660))(this, 256); }
GD Web Decomp Icon

GD Web Decomp

Raw Source