//
// GJBaseGameLayer::updateScreenRotation from 0x485f2c to 0x485fbe (146 bytes)
//
// 1 xrefs:
// > PlayLayer::updateScreenRotation @ 0x310a3e
//
// 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 GJBaseGameLayer::updateScreenRotation(
GJBaseGameLayer *a1,
float a2,
bool a3,
bool a4,
float a5,
int a6,
float a7,
int a8,
int a9)
{
float v11; // s15
GJGameState *p_m_gameState; // r0
if ( a3 )
v11 = a2 + a1->m_gameState.m_targetCameraAngle;
else
v11 = a2;
a1->m_gameState.m_targetCameraAngle = v11;
if ( a4 )
{
a1->m_gameState.m_cameraAngle = GJBaseGameLayer::convertToClosestDirection(a1->m_gameState.m_cameraAngle, 180.0);
a1->m_gameState.m_targetCameraAngle = GJBaseGameLayer::convertToClosestDirection(
a1->m_gameState.m_targetCameraAngle,
180.0);
}
p_m_gameState = &a1->m_gameState;
if ( a5 <= 0.0 )
{
GJGameState::stopTweenAction(p_m_gameState, 17);
a1->m_gameState.m_cameraAngle = a2;
}
else
{
GJGameState::tweenValue(
p_m_gameState,
a1->m_gameState.m_cameraAngle,
a1->m_gameState.m_targetCameraAngle,
17,
a5,
a6,
a7,
a8,
a9);
}
}