//
// UILayer::onPause from 0x100049540 to 0x10004958c (76 bytes)
//
// 4 xrefs:
// > UILayer::handleKeypress @ 0x100049d40
// > UILayer::keyBackClicked @ 0x100049fa0
// > sub_100049FB0 @ 0x100049fe0
// > UILayer::init @ 0x100049120
//
// 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::onPause(UILayer *a1, cocos2d::CCObject *a2)
{
if ( !GameManager::sharedState()->m_playLayer
|| (int)GameManager::sharedState()->m_playLayer->m_gameState.m_pauseCounter <= 2 )
{
UILayer::doPause(a1);
}
}