// // GJBaseGameLayer::updateDualGround from 0x487d8c to 0x487e02 (118 bytes) // // 7 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x31f626 // > GJBaseGameLayer::updateCameraMode @ 0x487e9c // > GJBaseGameLayer::updateZoom @ 0x487f72 // > GJBaseGameLayer::exitStaticCamera @ 0x4882b2 // > GJBaseGameLayer::playerWillSwitchMode @ 0x491672 // > GJBaseGameLayer::toggleDualMode @ 0x4918b4 // > GJBaseGameLayer::setupLevelStart @ 0x491aaa // // 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::updateDualGround(GJBaseGameLayer *a1, PlayerObject *a2, int a3, bool a4, float a5) { GameObject *m_lastActivatedPortal1; // r6 float GroundHeight; // r0 if ( !a1->m_gameState.m_isDualMode || (m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal2) == nullptr ) m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal1; if ( (unsigned int)(a3 - 23) > 1 ) a1->m_gameState.m_dualRelated = a3; GroundHeight = GJBaseGameLayer::getGroundHeight(a1, a2, a3); if ( a1->m_gameState.m_isFreeMode || GroundHeight == 270.0 && a3 != 33 && !a1->m_gameState.m_isDualMode ) GJBaseGameLayer::animateOutGroundNew(a1, a4); else GJBaseGameLayer::animateInDualGroundNew(a1, m_lastActivatedPortal1, GroundHeight, a4, a5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source