//
// PlayerObject::getActiveMode from 0x626380 to 0x6263cc (76 bytes)
//
// 4 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x5e4e80
// > GJBaseGameLayer::updateZoom @ 0x8800cc
// > GJBaseGameLayer::toggleDualMode @ 0x88a41c
// > ??> @ 0x98a30
//
// 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 PlayerObject::getActiveMode(PlayerObject *a1)
{
_BOOL4 isFlying; // w1
GameObjectType result; // w0
isFlying = PlayerObject::isFlying(a1);
result = ShipPortal;
if ( !isFlying )
{
result = BallPortal;
if ( !a1->m_isBall )
{
if ( a1->m_isSpider )
return SpiderPortal;
else
return CubePortal;
}
}
return result;
}