// // cocos2d::extension::CCControl::init from 0x5a1018 to 0x5a109e (134 bytes) // // 8 xrefs: // > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x5a20c2 // > cocos2d::extension::CCControlColourPicker::init @ 0x5a289c // > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x5a2c8a // > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x5a3208 // > cocos2d::extension::CCControlSlider::initWithSprites @ 0x5a3a9e // > cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0x5a4922 // > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x5a6f0c // > cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0x5a7800 // // 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 // bool cocos2d::extension::CCControl::init(cocos2d::extension::CCControl *a1) { _BOOL4 v2; // r6 cocos2d::extension::CCControl_vtbl *v3; // r3 cocos2d::CCDictionary *v4; // r5 v2 = cocos2d::CCLayer::init(a1); if ( v2 ) { v3 = a1->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_eState = 1; v3->setEnabled(a1, 1); a1->setSelected(a1, 0); a1->setHighlighted(a1, 0); a1->setTouchPriority(a1, 1); v4 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v4); a1->m_pDispatchTable = v4; std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( (int)&a1->m_mapHandleOfControlEvent, &a1->m_mapHandleOfControlEvent.m_header.m_parent->m_isblack); a1->m_mapHandleOfControlEvent.m_header.m_left = &a1->m_mapHandleOfControlEvent.m_header; a1->m_mapHandleOfControlEvent.m_header.m_parent = nullptr; a1->m_mapHandleOfControlEvent.m_header.m_right = &a1->m_mapHandleOfControlEvent.m_header; a1->m_mapHandleOfControlEvent.m_nodecount = 0; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source