// // PlayerObject::enablePlayerControls from 0x10022c948 to 0x10022ca30 (232 bytes) // // 4 xrefs: // > GJBaseGameLayer::processOptionsTrigger @ 0x1001f22e8 // > GJBaseGameLayer::processOptionsTrigger @ 0x1001f230c // > GJBaseGameLayer::loadUpToPosition @ 0x1001fce7c // > GJBaseGameLayer::loadUpToPosition @ 0x1001fce84 // // 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 PlayerObject::enablePlayerControls(PlayerObject *a1) { PlayerButton v2; // w20 int v3; // [xsp+0h] [xbp-30h] BYREF int *v4; // [xsp+8h] [xbp-28h] BYREF a1->m_controlsDisabled = 0; v2 = 2; v3 = 2; v4 = &v3; if ( (sub_1000FE7D8((__int64)&a1->m_holdingButtons, &v3, (__int64)&unk_10063A946, &v4)[8] & 1) != 0 || (v2 = 3, v3 = 3, v4 = &v3, *((_BYTE *)sub_1000FE7D8((__int64)&a1->m_holdingButtons, &v3, (__int64)&unk_10063A946, &v4) + 32) == 1) ) { PlayerObject::switchedDirTo(a1, v2); } v3 = 1; v4 = &v3; if ( *((_BYTE *)sub_1000FE7D8((__int64)&a1->m_holdingButtons, &v3, (__int64)&unk_10063A946, &v4) + 32) == 1 ) PlayerObject::pushButton(a1, Jump); }
GD Web Decomp Icon

GD Web Decomp

Raw Source