// // cocos2d::extension::CCControlPotentiometer::setValue from 0xaa3604 to 0xaa3698 (148 bytes) // // 5 xrefs: // > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0xaa3800 // > cocos2d::extension::CCControlPotentiometer::setMinimumValue @ 0xaa3908 // > cocos2d::extension::CCControlPotentiometer::setMaximumValue @ 0xaa3934 // > cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0xaa3d90 // > @ 0x2fdc0 // // 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::CCControlPotentiometer::setValue(cocos2d::extension::CCControlPotentiometer *a1, float a2) { float v2; // s2 int m_uIndexInArray; // s1 cocos2d::CCProgressTimer *v5; // x0 float v6; // s8 v2 = *(float *)&a1[1].m_eObjType; if ( v2 > a2 ) a2 = *(float *)&a1[1].m_eObjType; m_uIndexInArray = a1[1].m_uIndexInArray; if ( a2 > *(float *)&m_uIndexInArray ) a2 = *(float *)&a1[1].m_uIndexInArray; v5 = *(cocos2d::CCProgressTimer **)&a1[1].m_uID; *(float *)&a1[1].m_uAutoReleaseCount = a2; v6 = (float)(a2 - v2) / (float)(*(float *)&m_uIndexInArray - v2); cocos2d::CCProgressTimer::setPercentage(v5, v6 * 100.0); (*((void (__fastcall **)(cocos2d::extension::CCControlPotentiometer_vtbl *, float))a1[1].copyWithZone + 43))( a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, v6 * 360.0); a1->sendActionsForControlEvents(a1, 256); }
GD Web Decomp Icon

GD Web Decomp

Raw Source