// // SetupSongTriggerPopup::updateSongTimeSlider from 0x9a9e48 to 0x9a9fb0 (360 bytes) // // 2 xrefs: // > SetupSongTriggerPopup::init @ 0x9aa7b0 // > @ 0x5a6d8 // // 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 SetupSongTriggerPopup::updateSongTimeSlider(SetupSongTriggerPopup *a1) { FMODAudioEngine *v2; // x22 MusicDownloadManager *v3; // x0 void *v4; // x0 FMODAudioEngine *v5; // x0 unsigned int MusicLengthMS; // w0 float v7; // s8 unsigned int *v8; // x2 int v9; // w1 __int64 v10; // [xsp+50h] [xbp+50h] BYREF if ( a1->m_selectNode->m_selectedSongID > 0 ) { v2 = FMODAudioEngine::sharedEngine(); v3 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v10, v3, a1->m_selectNode->m_selectedSongID); FMODAudioEngine::loadMusic((__int64)v2, (__int64)&v10); v4 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v10 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v4); } v5 = FMODAudioEngine::sharedEngine(); MusicLengthMS = FMODAudioEngine::getMusicLengthMS(v5, 0); if ( MusicLengthMS ) { v7 = (float)MusicLengthMS; SetupTriggerPopup::setMaxSliderValue(a1, (float)MusicLengthMS, 408); SetupTriggerPopup::setMaxSliderValue(a1, v7, 410); SetupTriggerPopup::updateSlider(a1, 408); SetupTriggerPopup::updateSlider(a1, 410); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source