// // MusicBrowser::update from 0x1003c2014 to 0x1003c2154 (320 bytes) // // 1 xrefs: // > @ 0x100811d58 // // 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 MusicBrowser::update(MusicBrowser *a1, float a2) { FMODAudioEngine *v3; // x0 FMODAudioEngine *v4; // x0 unsigned int MusicTimeMS; // w20 FMODAudioEngine *v6; // x0 unsigned int MusicLengthMS; // w21 cocos2d::CCLabelBMFont *m_playLabel; // x22 cocos2d::CCString *v9; // x0 const char *CString; // x0 v3 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying_1(v3, 0) ) { Slider::enableSlider(a1->m_playSlider); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_playLabel->setVisible)(a1->m_playLabel, 1); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_playButton->setVisible)(a1->m_playButton, 1); v4 = FMODAudioEngine::sharedEngine(); MusicTimeMS = FMODAudioEngine::getMusicTimeMS(v4, 0); v6 = FMODAudioEngine::sharedEngine(); MusicLengthMS = FMODAudioEngine::getMusicLengthMS(v6, 0); m_playLabel = a1->m_playLabel; v9 = (cocos2d::CCString *)sub_100268F4C("%i/%is", MusicTimeMS / 0x3E8, MusicLengthMS / 0x3E8); CString = cocos2d::CCString::getCString(v9); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_playLabel->setString)(m_playLabel, CString); if ( !Slider::getLiveDragging(a1->m_playSlider) ) Slider::setValue(a1->m_playSlider, (float)MusicTimeMS / (float)MusicLengthMS); } else { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_playLabel->setVisible)(a1->m_playLabel, 0); Slider::disableSlider(a1->m_playSlider); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_playButton->setVisible)(a1->m_playButton, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source