// // GJBaseGameLayer::updateScreenRotation from 0x1001fd000 to 0x1001fd180 (384 bytes) // // 3 xrefs: // > @ 0x10078fdf0 // > @ 0x1007c0c08 // > @ 0x1007f4368 // // 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 __fastcall GJBaseGameLayer::updateScreenRotation( GJBaseGameLayer *a1, float a2, bool a3, bool a4, float a5, int a6, float a7, int a8, int a9) { float v13; // s1 float m_cameraAngle; // s0 float v15; // s4 float v16; // w8 float v17; // s0 float v18; // w8 int v19; // [xsp+Ch] [xbp-24h] BYREF v13 = a2; if ( a3 ) v13 = a1->m_gameState.m_targetCameraAngle + a2; a1->m_gameState.m_targetCameraAngle = v13; if ( a4 ) { m_cameraAngle = a1->m_gameState.m_cameraAngle; if ( m_cameraAngle >= -180.0 ) { if ( m_cameraAngle <= 180.0 ) goto LABEL_9; v15 = ceilf(floorf(m_cameraAngle / 180.0) * 0.5); v16 = -360.0; } else { v15 = ceilf(floorf(fabsf(m_cameraAngle) / 180.0) * 0.5); v16 = 360.0; } m_cameraAngle = m_cameraAngle + (float)(v15 * v16); LABEL_9: a1->m_gameState.m_cameraAngle = m_cameraAngle; if ( v13 >= -180.0 ) { if ( v13 <= 180.0 ) { LABEL_14: a1->m_gameState.m_targetCameraAngle = v13; goto LABEL_15; } v17 = ceilf(floorf(v13 / 180.0) * 0.5); v18 = -360.0; } else { v17 = ceilf(floorf(fabsf(v13) / 180.0) * 0.5); v18 = 360.0; } v13 = v13 + (float)(v17 * v18); goto LABEL_14; } LABEL_15: if ( a5 <= 0.0 ) { v19 = 17; sub_10001B104(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, &v19); a1->m_gameState.m_cameraAngle = a2; } else { GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraAngle, v13, 17, a5, a6, a7, a8, a9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source