// // cocos2d::extension::CCControlSwitch::setOn from 0x18000ca40 to 0x18000cae9 (169 bytes) // // 4 xrefs: // > @ 0x18003053c // > @ 0x18003054c // > @ 0x180032408 // > @ 0x18004bc84 // // This function is hookable on this platform (idp: pc, 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 12:15:38 +0000 // void __fastcall cocos2d::extension::CCControlSwitch::setOn( cocos2d::extension::CCControlSwitch *this, unsigned __int8 a2, char a3) { __int64 v4; // rax float *v5; // rcx cocos2d::CCNode *v6; // rbx struct cocos2d::CCAction *v7; // rax float v8; // xmm1_4 float v9; // xmm0_4 v4 = a2 ^ 1LL; *((_BYTE *)this + 485) = a2; v5 = *((float **)this + 59); if ( a3 ) { v6 = (cocos2d::CCNode *)v5; v7 = cocos2d::CCActionTween::create(0.2, "sliderXPosition", v5[152], v5[v4 + 153]); cocos2d::CCNode::runAction(v6, v7); } else { v8 = v5[v4 + 153]; v9 = v5[154]; if ( v9 < v8 ) v9 = fminf(v5[153], v8); v5[152] = v9; sub_18000C1C0((__int64)v5); } (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, __int64))(*(_QWORD *)this + 1088LL))(this, 256); }
GD Web Decomp Icon

GD Web Decomp

Raw Source