// // PlayerObject::switchedToMode from 0x1003ffd70 to 0x1003ffeb2 (322 bytes) // // 21 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x100101053 // > GJBaseGameLayer::setupLevelStart @ 0x100101202 // > GJBaseGameLayer::setupLevelStart @ 0x10010124c // > GJBaseGameLayer::setupLevelStart @ 0x100101296 // > GJBaseGameLayer::setupLevelStart @ 0x1001012e0 // > GJBaseGameLayer::setupLevelStart @ 0x10010132a // > GJBaseGameLayer::setupLevelStart @ 0x100101374 // > GJBaseGameLayer::setupLevelStart @ 0x1001013d7 // > GJBaseGameLayer::setupLevelStart @ 0x10010144b // > GJBaseGameLayer::setupLevelStart @ 0x1001014bf // > GJBaseGameLayer::setupLevelStart @ 0x100101533 // > GJBaseGameLayer::setupLevelStart @ 0x100101596 // > GJBaseGameLayer::setupLevelStart @ 0x1001015f9 // > GJBaseGameLayer::setupLevelStart @ 0x10010166d // > GJBaseGameLayer::switchToFlyMode @ 0x100101bd0 // > GJBaseGameLayer::switchToRollMode @ 0x100101d10 // > GJBaseGameLayer::switchToRobotMode @ 0x100101dc0 // > GJBaseGameLayer::switchToSpiderMode @ 0x100101e70 // > GJBaseGameLayer::collisionCheckObjects @ 0x10010540e // > PlayerObject::resetObject @ 0x1003ff51b // > MenuGameLayer::resetPlayer @ 0x1004f948b // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:30:02 +0000 // __int64 __fastcall PlayerObject::switchedToMode(__int64 a1, int a2) { __int64 v3; // rsi __int64 v4; // xmm0_8 __int64 result; // rax if ( a2 == 5 ) { PlayerObject::toggleBirdMode(a1, 0, 0); } else { PlayerObject::toggleFlyMode(a1, 0, 0); if ( a2 != 19 ) { PlayerObject::toggleBirdMode(a1, 0, 0); if ( a2 == 16 ) { PlayerObject::toggleDartMode(a1, 0, 0); LABEL_15: PlayerObject::toggleRobotMode(a1, 0, 0); LABEL_17: PlayerObject::toggleSpiderMode(a1, 0, 0); return PlayerObject::toggleSwingMode(a1, 0, 0); } } } if ( *(_BYTE *)(a1 + 2419) ) { *(_QWORD *)(a1 + 1960) = *(_QWORD *)(a1 + 2624); *(_BYTE *)(a1 + 2419) = 0; if ( *(float *)(a1 + 2472) == 1.0 || (v3 = 0, !*(_BYTE *)(a1 + 2648)) ) v3 = *(unsigned int *)(a1 + 1560); PlayerObject::updatePlayerFrame(a1, v3); if ( *(_BYTE *)(a1 + 2423) ) v4 = 1127481344; else v4 = 0; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 360LL))(a1, *(double *)&v4); *(_WORD *)(a1 + 1784) = 0; *(_BYTE *)(a1 + 1640) = 0; *(_DWORD *)(a1 + 1776) = 0; } if ( a2 == 26 ) goto LABEL_15; PlayerObject::toggleDartMode(a1, 0, 0); if ( a2 == 27 ) goto LABEL_17; PlayerObject::toggleRobotMode(a1, 0, 0); if ( a2 == 33 ) return PlayerObject::toggleSwingMode(a1, 0, 0); result = PlayerObject::toggleSpiderMode(a1, 0, 0); if ( a2 != 41 ) return PlayerObject::toggleSwingMode(a1, 0, 0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source