//
// AppDelegate::applicationWillResignActive from 0x10065c280 to 0x10065c2e3 (99 bytes)
//
// 1 xrefs:
// > ??> @ 0x100986b48
//
// 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::applicationWillResignActive(AppDelegate *a1)
{
cocos2d::CCScene *m_pRunningScene; // rax
GameManager *v2; // rax
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()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0] )
{
v2 = GameManager::sharedState();
PlayLayer::pauseGame(v2->m_playLayer, 1);
}
}