// // cocos2d::extension::CCControlPotentiometer::setValue from 0xd15064 to 0xd150f8 (148 bytes) // // 5 xrefs: // > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0xd15260 // > cocos2d::extension::CCControlPotentiometer::setMinimumValue @ 0xd15368 // > cocos2d::extension::CCControlPotentiometer::setMaximumValue @ 0xd15394 // > cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0xd157e0 // > @ 0x478d8 // // This function is hookable on this platform (idp: arm, 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 13:07:05 +0000 // __int64 __fastcall cocos2d::extension::CCControlPotentiometer::setValue( cocos2d::extension::CCControlPotentiometer *this, float a2) { float v3; // s2 float v4; // s1 cocos2d::CCProgressTimer *v5; // x0 float v6; // s8 v3 = *((float *)this + 125); if ( v3 > a2 ) a2 = *((float *)this + 125); v4 = *((float *)this + 126); if ( a2 > v4 ) a2 = *((float *)this + 126); v5 = *((cocos2d::CCProgressTimer **)this + 60); *((float *)this + 124) = a2; v6 = (float)(a2 - v3) / (float)(v4 - v3); cocos2d::CCProgressTimer::setPercentage(v5, v6 * 100.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 59) + 360LL))(*((_QWORD *)this + 59), v6 * 360.0); return (*(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(*(_QWORD *)this + 1320LL))( this, 256); }
GD Web Decomp Icon

GD Web Decomp

Raw Source