// // CustomSongWidget::updatePlaybackBtn from 0x1006faba0 to 0x1006fac58 (184 bytes) // // 3 xrefs: // > CustomSongWidget::init @ 0x1006f861a // > CustomSongWidget::songStateChanged @ 0x1006fb8d7 // > sub_1006FB8E0 @ 0x1006fb901 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:35:55 +0000 // void __fastcall CustomSongWidget::updatePlaybackBtn(__int64 a1) { __int64 v1; // rbx __int64 v2; // r14 __int64 v3; // rax bool isMusicPlaying; // r14 __int64 v5; // rax const char *v6; // rsi __int64 v7; // rax std::string v8; // [rsp+0h] [rbp-30h] BYREF if ( *(_QWORD *)(a1 + 336) ) { v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 1072LL))(*(_QWORD *)(a1 + 416)); v2 = FMODAudioEngine::sharedEngine(); v3 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v8, v3, *(_DWORD *)(*(_QWORD *)(a1 + 336) + 316LL)); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v2, (unsigned __int8 *)&v8, 0); if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v8.__r_.__value_.__l.__data_); v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v6 = "GJ_playMusicBtn_001.png"; if ( isMusicPlaying ) v6 = "GJ_stopMusicBtn_001.png"; v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 1160LL))(v1, v7); } }