// // GJBaseGameLayer::switchToFlyMode from 0x46ef1e to 0x46efa6 (136 bytes) // // 4 xrefs: // > PlayerObject::loadFromCheckpoint @ 0x35098c // > GJBaseGameLayer::setupLevelStart @ 0x491a28 // > GJBaseGameLayer::setupLevelStart @ 0x491a3e // > GJBaseGameLayer::collisionCheckObjects @ 0x492c5c // // 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::switchToFlyMode(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3, bool a4, int a5) { GameObject *v8; // r0 bool m_hasNoEffects; // r2 bool v10; // r2 bool v11; // r2 bool v12; // r2 PlayerObject::switchedToMode(a2, (GameObjectType)a5); v8 = GJBaseGameLayer::processCameraObject(a1, a3, a2); switch ( a5 ) { case 5: if ( v8 ) m_hasNoEffects = v8->m_hasNoEffects; else m_hasNoEffects = 0; PlayerObject::toggleFlyMode(a2, 1, m_hasNoEffects); break; case 19: if ( v8 ) v10 = v8->m_hasNoEffects; else v10 = 0; PlayerObject::toggleBirdMode(a2, 1, v10); break; case 41: if ( v8 ) v11 = v8->m_hasNoEffects; else v11 = 0; PlayerObject::toggleSwingMode(a2, 1, v11); break; default: if ( v8 ) v12 = v8->m_hasNoEffects; else v12 = 0; PlayerObject::toggleDartMode(a2, 1, v12); break; } a1->toggleGlitter(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source