// // CustomSongWidget::loadSongInfoFinished from 0x1000fdea4 to 0x1000fdf88 (228 bytes) // // 2 xrefs: // > sub_1000FDF88 @ 0x1000fdf8c // > @ 0x100787200 // // 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 CustomSongWidget::loadSongInfoFinished(CustomSongWidget *a1, SongInfoObject *a2) { int m_songID; // w8 std::__tree_end_node *>::pointer i; // x9 int v6; // w10 int m_customSongID; // w9 cocos2d::CCDelayTime *v9; // x20 cocos2d::CCAction *v10; // x0 MusicDownloadManager *v11; // x0 int v12; // [xsp+1Ch] [xbp-14h] BYREF cocos2d::SEL_CallFunc v13; // 0:x1.16 m_songID = a2->m_songID; for ( i = a1->m_nextSongIDs.__tree_.__pair1_.__value_.__left_; i; i = *(std::__tree_end_node *>::pointer *)i ) { v6 = *((_DWORD *)i + 7); if ( m_songID >= v6 ) { if ( v6 >= m_songID ) { v12 = a2->m_songID; sub_10004C07C(&a1->m_nextSongIDs.__tree_.__begin_node_, &v12); v11 = MusicDownloadManager::sharedState(); MusicDownloadManager::downloadSong(v11, a2->m_songID); return; } i = (std::__tree_end_node *>::pointer)((char *)i + 8); } } m_customSongID = a1->m_customSongID; if ( m_customSongID == m_songID && m_customSongID != 0 ) { CustomSongWidget::updateSongObject(a1, a2); if ( a1->m_isNotDownloading ) CustomSongWidget::startDownload(a1); v9 = cocos2d::CCDelayTime::create(0.0); v13.ptr = (void (*)(void))CustomSongWidget::updateSongInfo; v13.adj = 0; cocos2d::CCCallFunc::create(a1, v13); v10 = (cocos2d::CCAction *)sub_10018A494(v9); cocos2d::CCNode::runAction(a1, v10); } }