// // CustomSongWidget::onDownload from 0x7480b0 to 0x748268 (440 bytes) // // 5 xrefs: // > CustomSongWidget::musicActionFinished @ 0x748284 // > CustomSongWidget::FLAlert_Clicked @ 0x74830c // > @ 0x69600 // > CustomSongWidget::init @ 0x745a48 // > @ 0x122b6d8 // // 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 CustomSongWidget::onDownload(CustomSongWidget *a1, cocos2d::CCObject *a2) { cocos2d::extension::CCScale9Sprite *m_bgSpr; // x0 GameManager *v4; // x0 MusicDownloadManager *v5; // x0 MusicDownloadManager *v6; // x0 MusicDownloadManager *v7; // x0 a1->m_errorLabel->setVisible(a1->m_errorLabel, 0); m_bgSpr = a1->m_bgSpr; if ( m_bgSpr ) m_bgSpr->setVisible(m_bgSpr, 0); v4 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v4, "0016") ) { v7 = MusicDownloadManager::sharedState(); MusicDownloadManager::showTOS(v7, &a1->FLAlertLayerProtocol); return; } if ( a1->m_hasSFX ) { a1->m_downloadBtn->setVisible(a1->m_downloadBtn, 0); a1->m_cancelDownloadBtn->setVisible(a1->m_cancelDownloadBtn, 1); if ( *((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) ) { CustomSongWidget::startMultiAssetDownload(a1); return; } goto LABEL_10; } if ( !a1->m_songInfoObject ) return; a1->m_sliderGroove->setVisible(a1->m_sliderGroove, 1); a1->m_downloadBtn->setVisible(a1->m_downloadBtn, 0); a1->m_cancelDownloadBtn->setVisible(a1->m_cancelDownloadBtn, 1); a1->m_deleteBtn->setVisible(a1->m_deleteBtn, 0); if ( a1->m_customSongID > 9999999 && !*((_QWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) ) { LABEL_10: a1->m_hasLibrarySongs = (unsigned __int8)&dword_0 + 1; v6 = MusicDownloadManager::sharedState(); MusicDownloadManager::getCustomContentURL(v6); return; } if ( a1->m_songInfoObject->m_verified ) { CustomSongWidget::startDownload(a1); } else { a1->m_isNotDownloading = 1; v5 = MusicDownloadManager::sharedState(); MusicDownloadManager::getSongInfo(v5, a1->m_customSongID, 1); } }