// // GJBaseGameLayer::updateCameraMode from 0x87ff4c to 0x87fff4 (168 bytes) // // 4 xrefs: // > CameraTriggerGameObject::triggerObject @ 0x770510 // > GJBaseGameLayer::playerWillSwitchMode @ 0x88a2b4 // > GJBaseGameLayer::toggleDualMode @ 0x88a5c8 // > @ 0xa1670 // // 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::updateCameraMode(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3) { int m_cameraIsFreeMode; // w3 int m_isFreeMode; // w4 float m_cameraEasingValue; // s1 float v6; // s0 float m_cameraPaddingValue; // s2 float v8; // s0 m_cameraIsFreeMode = a2->m_cameraIsFreeMode; m_isFreeMode = a1->m_gameState.m_isFreeMode; a1->m_gameState.m_isFreeMode = m_cameraIsFreeMode; a1->m_gameState.m_unkBool9 = a2->m_cameraDisableGridSnap; if ( a2->m_cameraEditCameraSettings ) { m_cameraEasingValue = a2->m_cameraEasingValue; v6 = 1.0; a1->m_gameState.m_unkFloat3 = m_cameraEasingValue; m_cameraPaddingValue = a2->m_cameraPaddingValue; if ( m_cameraEasingValue >= 1.0 && (v6 = 40.0, m_cameraEasingValue <= 40.0) ) { a1->m_gameState.m_unkFloat3 = m_cameraEasingValue; if ( m_cameraPaddingValue >= 0.0 ) { LABEL_5: v8 = 1.0; if ( m_cameraPaddingValue <= 1.0 ) v8 = m_cameraPaddingValue; goto LABEL_7; } } else { a1->m_gameState.m_unkFloat3 = v6; if ( m_cameraPaddingValue >= 0.0 ) goto LABEL_5; } v8 = 0.0; LABEL_7: a1->m_gameState.m_unkFloat2 = v8; } if ( m_isFreeMode != m_cameraIsFreeMode && a3 ) GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source