// // OptionsLayer::musicSliderChanged from 0x7c739c to 0x7c7420 (132 bytes) // // 3 xrefs: // > @ 0x88998 // > OptionsLayer::customSetup @ 0x7c869c // > @ 0x122ca00 // // 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; // s8 FMODAudioEngine *v3; // x0 float BackgroundMusicVolume; // s9 FMODAudioEngine *v5; // x0 GameManager *v6; // x0 FMODAudioEngine *v7; // x0 FMODAudioEngine *v8; // x0 Value = SliderThumb::getValue((SliderThumb *)a2); if ( Value < 0.03 ) { v7 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::getBackgroundMusicVolume(v7); v8 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::setBackgroundMusicVolume(v8, 0.0); } else { 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