//
// UILayer::onCheck from 0x1004c8480 to 0x1004c84d4 (84 bytes)
//
// 2 xrefs:
// > UILayer::handleKeypress @ 0x1004c92ff
// > UILayer::init @ 0x1004c7f52
//
// 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 UILayer::onCheck(UILayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
GameManager *v3; // rax
if ( GameManager::sharedState()->m_playLayer )
{
if ( GameManager::sharedState()->m_playLayer->m_isPracticeMode )
{
v2 = GameManager::sharedState();
PlayLayer::queueCheckpoint(v2->m_playLayer);
v3 = GameManager::sharedState();
PlayerObject::removePendingCheckpoint(v3->m_playLayer->m_player1);
}
}
}