//
// PlayerObject::getActiveMode from 0x1004161f0 to 0x100416241 (81 bytes)
//
// 4 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x1000bd820
// > GJBaseGameLayer::toggleDualMode @ 0x10012423c
// > GJBaseGameLayer::updateZoom @ 0x10014ebfd
// > GJBaseGameLayer::resetCamera @ 0x100159f27
//
// 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
//
GameObjectType __fastcall PlayerObject::getActiveMode(PlayerObject *a1)
{
GameObjectType result; // eax
result = ShipPortal;
if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing )
{
result = BallPortal;
if ( !a1->m_isBall )
{
result = CubePortal;
if ( a1->m_isSpider )
return SpiderPortal;
}
}
return result;
}