// // GJRotationControl::updateSliderPosition from 0x695170 to 0x695280 (272 bytes) // // 2 xrefs: // > GJRotationControl::ccTouchMoved @ 0x695328 // > @ 0x8c1a8 // // 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 GJRotationControl::updateSliderPosition(GJRotationControl *a1, cocos2d::CCPoint a2) { float *v2; // x1 cocos2d::CCPoint *p_m_controlPosition; // x22 float v5; // s8 float v6; // s9 float v7; // s0 float v8; // s0 float v9; // s1 float m_currentRotation; // s1 float v11; // s0 GJRotationControlDelegate *m_delegate; // x0 cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF p_m_controlPosition = &a1->m_controlPosition; v5 = atan2f(v2[1] - a1->m_cursorDifference.y, *v2 - a1->m_cursorDifference.x); v6 = cosf(v5); v7 = sinf(v5); cocos2d::CCPoint::CCPoint(&v13, (float)(v6 * 60.0) + 0.0, (float)(v7 * 60.0) + 0.0); cocos2d::CCPoint::operator=(p_m_controlPosition, v8, v9); a1->m_controlSprite->setPosition(a1->m_controlSprite, p_m_controlPosition); m_currentRotation = a1->m_currentRotation; v11 = roundf((float)-(float)(v5 * 57.296) * 1000.0) / 1000.0; if ( m_currentRotation != v11 ) { m_delegate = a1->m_delegate; a1->m_currentRotation = v11; if ( m_delegate ) m_delegate->angleChanged(m_delegate, v11 - m_currentRotation); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source