//
// UILayer::onDeleteCheck from 0x5c5f00 to 0x5c5f44 (68 bytes)
//
// 4 xrefs:
// > UILayer::handleKeypress @ 0x5c6ed8
// > ??> @ 0xa9aa0
// > UILayer::init @ 0x5c81b4
// > ??> @ 0x122ddf8
//
// 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 UILayer::onDeleteCheck(UILayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
if ( GameManager::sharedState()->m_playLayer )
{
if ( GameManager::sharedState()->m_playLayer->m_isPracticeMode )
{
v2 = GameManager::sharedState();
PlayLayer::removeCheckpoint(v2->m_playLayer, 0);
}
}
}