//
// AppDelegate::pauseGame from 0x307a6a to 0x307ab2 (72 bytes)
//
// 2 xrefs:
// > AppDelegate::applicationWillResignActive @ 0x307ab2
// > AppDelegate::applicationDidEnterBackground @ 0x307af4
//
// 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 AppDelegate::pauseGame(AppDelegate *a1)
{
cocos2d::CCScene *m_pRunningScene; // r3
GameManager *v2; // r0
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
if ( m_pRunningScene
&& m_pRunningScene->m_eObjType == PlayLayerObjectType
&& GameManager::sharedState()->m_playLayer
&& !GameManager::sharedState()->m_playLayer->m_hasCompletedLevel
&& !BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) )
{
v2 = GameManager::sharedState();
PlayLayer::pauseGame(v2->m_playLayer, 1);
}
}