//
// SongSelectNode::onOpenCustomSong from 0x100219560 to 0x1002195ca (106 bytes)
//
// 2 xrefs:
// > SongSelectNode::init @ 0x1002191af
// > SongSelectNode::init @ 0x100219240
//
// 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 *v2; // rax
CustomSongLayer *v3; // rax
MusicDownloadManager *v4; // rax
v2 = GameManager::sharedState();
if ( GameManager::getGameVariable(v2, "0016") )
{
v3 = CustomSongLayer::create(&a1->CustomSongDelegate);
v3->m_delegate = &a1->CustomSongLayerDelegate;
((void (__fastcall *)(CustomSongLayer *))v3->show)(v3);
}
else
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::showTOS(v4, &a1->FLAlertLayerProtocol);
}
}