// // PlayerObject::switchedDirTo from 0x100227d78 to 0x100227eac (308 bytes) // // 2 xrefs: // > PlayerObject::pushButton @ 0x100228084 // > PlayerObject::enablePlayerControls @ 0x10022c9d4 // // 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 // bool __fastcall PlayerObject::switchedDirTo(PlayerObject *a1, PlayerButton a2) { bool m_controlsDisabled; // w8 int v6; // [xsp+0h] [xbp-40h] BYREF int *v7; // [xsp+8h] [xbp-38h] BYREF if ( !a1->m_inputsLocked ) { v6 = 3; v7 = &v6; *((_BYTE *)sub_1000FE7D8((__int64)&a1->m_holdingButtons, &v6, (__int64)&unk_10063A946, &v7) + 32) = a2 == 3; v6 = 2; v7 = &v6; *((_BYTE *)sub_1000FE7D8((__int64)&a1->m_holdingButtons, &v6, (__int64)&unk_10063A946, &v7) + 32) = a2 == 2; } m_controlsDisabled = a1->m_controlsDisabled; if ( !m_controlsDisabled ) { if ( a2 == 3 ) { a1->m_holdingRight = 1; a1->m_leftPressedFirst = 0; if ( a1->m_isSliding && a1->m_isSlidingRight ) { a1->m_isSliding = 0; a1->m_maybeSlopeForce = 0.0; } if ( a1->m_platformerXVelocity >= 0.0 ) return !m_controlsDisabled; LABEL_14: a1->m_isMoving = 0; return !m_controlsDisabled; } *(_WORD *)&a1->m_holdingLeft = 257; if ( a1->m_isSliding && !a1->m_isSlidingRight ) { a1->m_isSliding = 0; a1->m_maybeSlopeForce = 0.0; } if ( a1->m_platformerXVelocity > 0.0 ) goto LABEL_14; } return !m_controlsDisabled; }
GD Web Decomp Icon

GD Web Decomp

Raw Source