//
// MusicDelegateHandler::create from 0x828a00 to 0x828a98 (152 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::addMusicDownloadDelegate @ 0x829240
// > ??> @ 0x5a1f8
//
// 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
//
MusicDelegateHandler *MusicDelegateHandler::create(MusicDownloadDelegate *a1)
{
MusicDelegateHandler *v2; // x19
v2 = (MusicDelegateHandler *)operator new(0x148u);
cocos2d::CCNode::CCNode(v2);
v2->m_delegate = nullptr;
v2->__vftable = (MusicDelegateHandler_vtbl *)&off_11894F0;
if ( MusicDelegateHandler::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
v2->~MusicDelegateHandler_0(v2);
return nullptr;
}
}