// // GJBaseGameLayer::switchToFlyMode from 0x58edde to 0x58ee66 (136 bytes) // // 4 xrefs: // > PlayerObject::loadFromCheckpoint @ 0x44b1dc // > GJBaseGameLayer::setupLevelStart @ 0x5b9f5a // > GJBaseGameLayer::setupLevelStart @ 0x5b9f70 // > GJBaseGameLayer::collisionCheckObjects @ 0x5baabe // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:53:04 +0000 // int __fastcall GJBaseGameLayer::switchToFlyMode( GJBaseGameLayer *this, PlayerObject *a2, GameObject *a3, bool a4, int a5) { int v8; // r3 GameObject *v9; // r0 int v10; // r2 int v11; // r2 int v12; // r2 int v13; // r2 PlayerObject::switchedToMode((char *)a2, a5); v9 = GJBaseGameLayer::processCameraObject(this, a3, a2, v8); switch ( a5 ) { case 5: if ( v9 ) v10 = *((unsigned __int8 *)v9 + 908); else v10 = 0; PlayerObject::toggleFlyMode((int)a2, 1, v10); break; case 19: if ( v9 ) v11 = *((unsigned __int8 *)v9 + 908); else v11 = 0; PlayerObject::toggleBirdMode((int)a2, 1, v11); break; case 41: if ( v9 ) v12 = *((unsigned __int8 *)v9 + 908); else v12 = 0; PlayerObject::toggleSwingMode((int)a2, 1, v12); break; default: if ( v9 ) v13 = *((unsigned __int8 *)v9 + 908); else v13 = 0; PlayerObject::toggleDartMode((int)a2, 1, v13); break; } return (*(int (__fastcall **)(GJBaseGameLayer *, int))(*(_DWORD *)this + 644))(this, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source