//
// GJBaseGameLayer::toggleLockPlayer from 0x865ccc to 0x865d00 (52 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::processOptionsTrigger @ 0x865e00
// > GJBaseGameLayer::processOptionsTrigger @ 0x865e18
// > GJBaseGameLayer::loadUpToPosition @ 0x89d600
// > GJBaseGameLayer::loadUpToPosition @ 0x89d610
// > ??> @ 0xc7cf8
//
// 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::toggleLockPlayer(GJBaseGameLayer *a1, bool a2, bool a3)
{
if ( a2 )
{
if ( a3 )
PlayerObject::disablePlayerControls(a1->m_player1);
else
PlayerObject::disablePlayerControls(a1->m_player2);
}
else if ( a3 )
{
PlayerObject::enablePlayerControls(a1->m_player1);
}
else
{
PlayerObject::enablePlayerControls(a1->m_player2);
}
}