// // OptionsLayer::musicSliderChanged from 0x140372990 to 0x140372a8d (253 bytes) // // 2 xrefs: // > OptionsLayer::customSetup @ 0x140372494 // > @ 0x1406d5ac8 // // 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 // // Hidden C++ exception states: #wind=3 void OptionsLayer::musicSliderChanged(OptionsLayer *a1, cocos2d::CCObject *a2) { float Value; // xmm6_4 __int64 v3; // rax float v4; // xmm8_4 FMOD::ChannelControl *v5; // rcx GameManager *v6; // rcx FMODAudioEngine *v7; // [rsp+68h] [rbp+10h] void *v8; // [rsp+68h] [rbp+10h] Value = SliderThumb::getValue((SliderThumb *)a2); if ( Value < 0.029999999 ) Value = 0.0; v3 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v7 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = qword_1406C2E88; } v4 = *(float *)(v3 + 512); *(_DWORD *)(v3 + 524) = 0; *(float *)(v3 + 512) = Value; v5 = *(FMOD::ChannelControl **)(v3 + 552); if ( v5 ) FMOD::ChannelControl::setVolume(v5, Value); if ( v4 <= 0.0 && Value > 0.0 ) { v6 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v8 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = (GameManager *)qword_1406C2ED8; } GameManager::playMenuMusic(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source