//
// SongInfoLayer::onMenuMusic from 0x7de624 to 0x7de6bc (152 bytes)
//
// 3 xrefs:
// > ??> @ 0x9c750
// > SongInfoLayer::init @ 0x7df4c8
// > ??> @ 0x122d598
//
// 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 SongInfoLayer::onMenuMusic(SongInfoLayer *a1, cocos2d::CCObject *a2)
{
GameStatsManager *v3; // x0
GameManager *v4; // x0
v3 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemUnlocked(v3, GJItem, 16) )
{
if ( a1->m_songID > 0 )
{
if ( GameManager::sharedState()->m_customMenuSongID == a1->m_songID )
GameManager::sharedState()->m_customMenuSongID = 0;
else
GameManager::sharedState()->m_customMenuSongID = a1->m_songID;
v4 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v4);
}
}
else
{
SongInfoLayer::showCustomMusicUnlockInfo(a1);
}
}