// // cocos2d::extension::CCControlSwitch::setEnabled from 0x5a40ba to 0x5a40d6 (28 bytes) // // 0 xrefs: // // 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::setEnabled(cocos2d::extension::CCControlSwitch *a1, bool a2) { cocos2d::extension::CCControlSwitch_vtbl *v2; // r0 int v3; // r1 a1->m_bEnabled = a2; v2 = a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v2 ) { if ( a2 ) v3 = 255; else v3 = 128; (*((void (__fastcall **)(cocos2d::extension::CCControlSwitch_vtbl *, int))v2->copyWithZone + 112))(v2, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source