// // CustomSongWidget::getSongInfoIfUnloaded from 0x10061ec90 to 0x10061ed6e (222 bytes) // // 2 xrefs: // > CustomSongLayer::init @ 0x10021586f // > CustomSongLayer::onSearch @ 0x100215b9f // // 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::getSongInfoIfUnloaded(CustomSongWidget *a1) { SongInfoObject *m_songInfoObject; // rdi cocos2d::extension::CCScale9Sprite *m_bgSpr; // rdi MusicDownloadManager *v4; // rax std::string __str; // [rsp+0h] [rbp-20h] BYREF m_songInfoObject = a1->m_songInfoObject; if ( m_songInfoObject && m_songInfoObject->m_unloaded ) { __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(__str.__r_.__value_.__s.__data_, "Loading"); std::string::operator=((std::string *)&m_songInfoObject->m_songName, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); CustomSongWidget::updateSongInfo(a1); if ( a1->m_songInfoObject ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 0); m_bgSpr = a1->m_bgSpr; if ( m_bgSpr ) ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))m_bgSpr->setVisible)(m_bgSpr, 0); v4 = MusicDownloadManager::sharedState(); MusicDownloadManager::getSongInfo(v4, a1->m_customSongID, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))a1->m_getSongInfoBtn->setColor)( a1->m_getSongInfoBtn, &unk_100822622); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_getSongInfoBtn->setEnabled)(a1->m_getSongInfoBtn, 0); } } }