// // CustomSongWidget::updatePlaybackBtn from 0x10061e710 to 0x10061e7c8 (184 bytes) // // 3 xrefs: // > CustomSongWidget::init @ 0x10061ba4e // > CustomSongWidget::songStateChanged @ 0x10061f347 // > sub_10061F350 @ 0x10061f371 // // 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::updatePlaybackBtn(CustomSongWidget *a1) { double v1; // xmm0_8 __int64 v2; // rbx FMODAudioEngine *v3; // r14 MusicDownloadManager *v4; // rax bool isMusicPlaying; // r14 cocos2d::CCSpriteFrameCache *v6; // rax const char *v7; // rsi cocos2d::CCSpriteFrame *v8; // rax std::string v9; // [rsp+0h] [rbp-30h] BYREF if ( a1->m_songInfoObject ) { v2 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playbackBtn->getNormalImage)(a1->m_playbackBtn); v3 = FMODAudioEngine::sharedEngine(); v4 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v9, v1, (__int64)v4, a1->m_songInfoObject->m_songID); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, (unsigned __int8 *)&v9, 0); if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v9.__r_.__value_.__l.__data_); v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v7 = "GJ_playMusicBtn_001.png"; if ( isMusicPlaying ) v7 = "GJ_stopMusicBtn_001.png"; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1144LL))(v2, v8); } }