// // cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite from 0xaa36a0 to 0xaa381c (380 bytes) // // 2 xrefs: // > cocos2d::extension::CCControlPotentiometer::create @ 0xaa387c // > @ 0x51fc0 // // 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::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite( cocos2d::extension::CCControlPotentiometer *a1, cocos2d::CCSprite *a2, cocos2d::CCProgressTimer *a3, cocos2d::CCSprite *a4) { bool v8; // w22 cocos2d::CCProgressTimer *v10; // x24 cocos2d::CCProgressTimer *v11; // x0 cocos2d::CCSprite *v12; // x0 cocos2d::CCNode *v13; // x0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 const cocos2d::CCPoint *v15; // x0 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x20 const cocos2d::CCSize *v17; // x0 v8 = cocos2d::extension::CCControl::init(a1); if ( !v8 ) return 0; v10 = a3; a1->setTouchEnabled(a1, 1); v11 = *(cocos2d::CCProgressTimer **)&a1[1].m_uID; if ( v11 != a3 ) { v10 = nullptr; if ( a3 ) { v10 = a3; cocos2d::CCObject::retain(a3); v11 = *(cocos2d::CCProgressTimer **)&a1[1].m_uID; } if ( v11 ) cocos2d::CCObject::release(v11); *(_QWORD *)&a1[1].m_uID = a3; } v12 = (cocos2d::CCSprite *)a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a4 != v12 ) { if ( a4 ) { cocos2d::CCObject::retain(a4); v12 = (cocos2d::CCSprite *)a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; } if ( v12 ) cocos2d::CCObject::release(v12); a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::extension::CCControlPotentiometer_vtbl *)a4; } v13 = v10; setPosition = a4->setPosition; v15 = a3->getPosition(v13); setPosition(a4, v15); a1->addChild_0(a1, a4, 2); a1->addChild_0(a1, a3, 1); a1->addChild(a1, a2); setContentSize = a1->setContentSize; v17 = a2->getContentSize(a2); setContentSize(a1, v17); *(float *)&a1[1].m_uIndexInArray = 1.0; a1[1].m_eObjType = 0; cocos2d::extension::CCControlPotentiometer::setValue(a1, 0.0); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source