// // GJBaseGameLayer::switchToFlyMode from 0x1001e64c8 to 0x1001e65c8 (256 bytes) // // 7 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x1001e6108 // > GJBaseGameLayer::setupLevelStart @ 0x1001e6158 // > GJBaseGameLayer::setupLevelStart @ 0x1001e6198 // > GJBaseGameLayer::setupLevelStart @ 0x1001e61d8 // > GJBaseGameLayer::setupLevelStart @ 0x1001e61fc // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a54 // > PlayerObject::loadFromCheckpoint @ 0x10022e34c // // 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 GJBaseGameLayer::switchToFlyMode( GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3, bool a4, int a5) { GameObject *v9; // x0 bool v10; // w8 bool v11; // w8 bool m_hasNoEffects; // w8 bool v13; // w8 PlayerObject::switchedToMode(a2, (GameObjectType)a5); v9 = GJBaseGameLayer::processCameraObject(a1, a3, a2); switch ( a5 ) { case 41: if ( v9 ) m_hasNoEffects = v9->m_hasNoEffects; else m_hasNoEffects = 0; PlayerObject::toggleSwingMode(a2, 1, m_hasNoEffects); break; case 19: if ( v9 ) v11 = v9->m_hasNoEffects; else v11 = 0; PlayerObject::toggleBirdMode(a2, 1, v11); break; case 5: if ( v9 ) v10 = v9->m_hasNoEffects; else v10 = 0; PlayerObject::toggleFlyMode(a2, 1, v10); break; default: if ( v9 ) v13 = v9->m_hasNoEffects; else v13 = 0; PlayerObject::toggleDartMode(a2, 1, v13); break; } ((void (__fastcall *)(GJBaseGameLayer *, __int64))a1->toggleGlitter)(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source