// // OptionsLayer::musicSliderChanged from 0x52c91c to 0x52c984 (104 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:01 +0000 // GameManager *__fastcall OptionsLayer::musicSliderChanged(OptionsLayer *this, cocos2d::CCObject *a2) { float v2; // r0 float v3; // s16 FMODAudioEngine *v4; // r0 float v5; // s17 FMODAudioEngine *v6; // r0 GameManager *result; // r0 GameManager *v8; // r0 v2 = COERCE_FLOAT(SliderThumb::getValue(a2)); v3 = v2; if ( v2 < 0.03 ) v3 = 0.0; v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)LODWORD(v2)); v5 = COERCE_FLOAT(FMODAudioEngine::getBackgroundMusicVolume(v4)); v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)LODWORD(v5)); result = FMODAudioEngine::setBackgroundMusicVolume(v6, v3); if ( v5 <= 0.0 && v3 > 0.0 ) { v8 = (GameManager *)GameManager::sharedState(result); return (GameManager *)GameManager::playMenuMusic(v8); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source