//
// AppDelegate::pauseGame from 0x10026941c to 0x100269484 (104 bytes)
//
// 1 xrefs:
// > AppDelegate::applicationWillResignActive @ 0x100269418
//
// 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 AppDelegate::pauseGame(AppDelegate *a1)
{
cocos2d::CCScene *m_pRunningScene; // x8
GameManager *v2; // x0
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
&& (cocos2d::CCApplication::sharedApplication()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] & 1) == 0 )
{
v2 = GameManager::sharedState();
PlayLayer::pauseGame(v2->m_playLayer, 1);
}
}