//
// SongSelectNode::onOpenCustomSong from 0x10014789c to 0x1001478f8 (92 bytes)
//
// 1 xrefs:
// > SongSelectNode::init @ 0x1001474ec
//
// 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 SongSelectNode::onOpenCustomSong(SongSelectNode *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
CustomSongLayer *v4; // x0
MusicDownloadManager *v5; // x0
v3 = GameManager::sharedState();
if ( GameManager::getGameVariable(v3, "0016") )
{
v4 = CustomSongLayer::create(&a1->CustomSongDelegate);
v4->m_delegate = &a1->CustomSongLayerDelegate;
((void (__fastcall *)(CustomSongLayer *))v4->show)(v4);
}
else
{
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::showTOS(v5, &a1->FLAlertLayerProtocol);
}
}