//
// AppDelegate::musicTest from 0x10026967c to 0x1002696f0 (116 bytes)
//
// 2 xrefs:
// > AppDelegate::resumeSound @ 0x100269638
// > AppDelegate::checkSound @ 0x1002696f8
//
// 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
//
bool __fastcall AppDelegate::musicTest(AppDelegate *a1)
{
cocos2d::CCScene *m_pRunningScene; // x19
GameManager *v3; // x0
if ( GameManager::sharedState()->m_loadingLevel )
return 1;
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
if ( !m_pRunningScene )
return 0;
if ( GameManager::sharedState()->m_playLayer )
{
if ( (cocos2d::CCApplication::sharedApplication()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] & 1) != 0 )
return 1;
v3 = GameManager::sharedState();
if ( !PlayLayer::isGameplayActive(v3->m_playLayer) )
return 1;
}
return m_pRunningScene->m_eObjType == LevelEditorLayerObjectType;
}