// // OptionsLayer::musicSliderChanged from 0x422420 to 0x422488 (104 bytes) // // 0 xrefs: // // 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 OptionsLayer::musicSliderChanged(OptionsLayer *a1, cocos2d::CCObject *a2) { float Value; // s16 FMODAudioEngine *v3; // r0 float BackgroundMusicVolume; // s17 FMODAudioEngine *v5; // r0 GameManager *v6; // r0 Value = SliderThumb::getValue((SliderThumb *)a2); if ( Value < 0.03 ) Value = 0.0; v3 = FMODAudioEngine::sharedEngine(); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v3); v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::setBackgroundMusicVolume(v5, Value); if ( BackgroundMusicVolume <= 0.0 && Value > 0.0 ) { v6 = GameManager::sharedState(); GameManager::playMenuMusic(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source