// // PlayerObject::releaseAllButtons from 0x14039f100 to 0x14039f2c6 (454 bytes) // // 18 xrefs: // > GJBaseGameLayer::toggleDualMode @ 0x140216c1f // > GJBaseGameLayer::resetLevelVariables @ 0x14023b4f1 // > GJBaseGameLayer::resetLevelVariables @ 0x14023b4fd // > LevelEditorLayer::onStopPlaytest @ 0x1402e090d // > PlayerObject::loadFromCheckpoint @ 0x1403a31e0 // > PlayerObject::loadFromCheckpoint @ 0x1403a3222 // > PlayLayer::showEndLayer @ 0x1403ac737 // > PlayLayer::showRetryLayer @ 0x1403ac932 // > PlayLayer::pauseGame @ 0x1403ba239 // > PlayLayer::pauseGame @ 0x1403ba27c // > PlayLayer::resumeAndRestart @ 0x1403ba508 // > PlayLayer::resume @ 0x1403ba879 // > @ 0x140698610 // > @ 0x140698658 // > @ 0x140698674 // > @ 0x14069868c // > @ 0x14069869c // > @ 0x1406d67d0 // // 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 PlayerObject::releaseAllButtons(PlayerObject *a1) { bool *p_m_inputsLocked; // r15 bool *p_m_controlsDisabled; // rdi bool *v4; // r14 bool *v5; // r12 bool *v6; // r13 bool v7; // zf bool m_inputsLocked; // al bool *v9; // rsi bool *v10; // rcx bool v11; // cc double m_platformerXVelocity; // xmm0_8 int v13; // [rsp+60h] [rbp+8h] BYREF if ( a1->m_inputsLocked ) { p_m_inputsLocked = &a1->m_inputsLocked; } else { v13 = 1; p_m_inputsLocked = &a1->m_inputsLocked; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, &v13) = 0; } p_m_controlsDisabled = &a1->m_controlsDisabled; v4 = p_m_inputsLocked; v5 = &a1->m_controlsDisabled; if ( !a1->m_controlsDisabled ) { v6 = &a1->m_controlsDisabled; if ( a1->m_jumpBuffered ) { PlayerObject::placeStreakPoint(a1); v6 = &a1->m_controlsDisabled; v4 = &a1->m_inputsLocked; } v7 = !a1->m_isDashing; *(_WORD *)&a1->m_jumpBuffered = 0; a1->m_touchedPad = 1; if ( !v7 ) { PlayerObject::stopDashing(a1); v5 = v6; } } m_inputsLocked = a1->m_inputsLocked; if ( !m_inputsLocked ) { v13 = 2; p_m_controlsDisabled = v5; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, &v13) = 0; m_inputsLocked = *p_m_inputsLocked; } v9 = p_m_controlsDisabled; if ( !*p_m_controlsDisabled ) { v10 = p_m_controlsDisabled; if ( a1->m_jumpBuffered ) { PlayerObject::placeStreakPoint(a1); m_inputsLocked = *v4; v10 = &a1->m_controlsDisabled; } v11 = a1->m_platformerXVelocity >= 0.0; a1->m_holdingLeft = 0; if ( !v11 ) { a1->m_isMoving = 0; v9 = v10; } } if ( !m_inputsLocked ) { v13 = 3; p_m_controlsDisabled = v9; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, &v13) = 0; } if ( !*p_m_controlsDisabled ) { if ( a1->m_jumpBuffered ) PlayerObject::placeStreakPoint(a1); m_platformerXVelocity = a1->m_platformerXVelocity; a1->m_holdingRight = 0; if ( m_platformerXVelocity > 0.0 ) a1->m_isMoving = 0; } PlayerObject::releaseButton(a1, (PlayerButton)2); PlayerObject::releaseButton(a1, (PlayerButton)3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source