//
// AppDelegate::musicTest from 0x5be380 to 0x5be408 (136 bytes)
//
// 3 xrefs:
// > AppDelegate::resumeSound @ 0x5be410
// > AppDelegate::checkSound @ 0x5be468
// > ??> @ 0x7ae08
//
// 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 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 ( BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) )
return 1;
v3 = GameManager::sharedState();
if ( !PlayLayer::isGameplayActive(v3->m_playLayer) )
return 1;
}
return m_pRunningScene->m_eObjType == LevelEditorLayerObjectType;
}