//
// UILayer::onPause from 0x30d376 to 0x30d3a0 (42 bytes)
//
// 2 xrefs:
// > UILayer::keyBackClicked @ 0x30d3ba
// > UILayer::handleKeypress @ 0x30d5be
//
// 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::onPause(UILayer *a1, cocos2d::CCObject *a2)
{
if ( !GameManager::sharedState()->m_playLayer
|| (int)GameManager::sharedState()->m_playLayer->m_gameState.m_pauseCounter <= 2 )
{
UILayer::doPause(a1);
}
}