// // OptionsLayer::musicSliderChanged from 0x8ee094 to 0x8ee118 (132 bytes) // // 3 xrefs: // > @ 0xb5258 // > OptionsLayer::customSetup @ 0x8f44f8 // > @ 0x1545320 // // This function is hookable on this platform (idp: arm, 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:56:56 +0000 // GameManager *__fastcall OptionsLayer::musicSliderChanged(OptionsLayer *this, cocos2d::CCObject *a2) { FMODAudioEngine *v2; // x0 float Value; // s8 FMODAudioEngine *v4; // x0 float BackgroundMusicVolume; // s9 FMODAudioEngine *v6; // x0 __int64 v7; // x0 GameManager *result; // x0 GameManager *v9; // x0 FMODAudioEngine *v10; // x0 FMODAudioEngine *v11; // x0 __int64 v12; // x0 Value = SliderThumb::getValue(a2); if ( Value < 0.03 ) { v10 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v2); FMODAudioEngine::getBackgroundMusicVolume(v10); v12 = FMODAudioEngine::sharedEngine(v11); return (GameManager *)FMODAudioEngine::setBackgroundMusicVolume(v12, 0.0); } else { v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v2); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v4); v7 = FMODAudioEngine::sharedEngine(v6); result = (GameManager *)FMODAudioEngine::setBackgroundMusicVolume(v7, Value); if ( BackgroundMusicVolume <= 0.0 && Value > 0.0 ) { v9 = (GameManager *)GameManager::sharedState(result); return (GameManager *)GameManager::playMenuMusic(v9); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source