// // cocos2d::extension::CCControlPotentiometer::potentiometerMoved from 0x5a72e0 to 0x5a73b6 (214 bytes) // // 1 xrefs: // > cocos2d::extension::CCControlPotentiometer::ccTouchMoved @ 0x5a73f6 // // 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::potentiometerMoved( cocos2d::extension::CCControlPotentiometer *a1, cocos2d::CCPoint a2) { float x; // r6 const cocos2d::CCPoint *v4; // r0 const cocos2d::CCPoint *v5; // r0 cocos2d::CCPoint v6; // r1 float v7; // r0 float v8; // s15 int v9; // r2 bool v10; // r3 cocos2d::CCPoint v11; // [sp+4h] [bp-20h] cocos2d::CCPoint v12; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v13; // [sp+14h] [bp-10h] BYREF cocos2d::CCPoint v14; // [sp+1Ch] [bp-8h] BYREF cocos2d::CCPoint v15; // [sp+24h] [bp+0h] BYREF cocos2d::CCPoint v16; // 0:r3.4,4:^0.4 x = a2.x; v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(unsigned int, _DWORD, _DWORD))(*(_DWORD *)a1[1].m_uID + 96))( a1[1].m_uID, LODWORD(a2.x), LODWORD(a2.y)); cocos2d::CCPoint::CCPoint(&v12, v4); cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)LODWORD(x)); v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)a1[1].m_uID + 96))(a1[1].m_uID); cocos2d::CCPoint::CCPoint(&v14, v5); cocos2d::CCPoint::CCPoint(&v15, (const cocos2d::CCPoint *)&a1[1].m_nLuaID); LODWORD(v16.y) = &v15; LODWORD(v6.x) = &v12; LODWORD(v6.y) = &v13; LODWORD(v16.x) = &v14; v7 = cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint( a1, v6, v16, v11, v12); v8 = v7; if ( v7 <= 180.0 ) { if ( v7 < -180.0 ) v8 = v7 + 360.0; } else { v8 = v7 - 360.0; } cocos2d::extension::CCControlPotentiometer::setValue( a1, *(float *)&a1[1].m_uReference + (float)((float)(v8 / 360.0) * (float)(*(float *)&a1[1].m_eObjType - *(float *)&a1[1].m_uAutoReleaseCount))); cocos2d::CCPoint::operator=((PlayerObject *)&a1[1].m_nLuaID, x, v9, v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source