// // GameManager::playMenuMusic from 0x323ef4 to 0x323f9e (170 bytes) // // 1 xrefs: // > OptionsLayer::musicSliderChanged @ 0x42247e // // 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 GameManager::playMenuMusic(GameManager *a1) { GameManager *v2; // r0 FMODAudioEngine *v3; // r0 FMODAudioEngine *v4; // r7 _BOOL4 isMusicPlaying; // r7 FMODAudioEngine *v6; // r7 char v7; // [sp+8h] [bp-14h] BYREF _BYTE v8[4]; // [sp+Ch] [bp-10h] BYREF _BYTE v9[4]; // [sp+10h] [bp-Ch] BYREF v2 = GameManager::sharedState(); if ( GameManager::getGameVariable(v2, "0122") ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v3, (bool)&dword_0 + 1); } else { GameManager::getMenuMusicFile((GameManager *)&v7, (int)a1); v4 = FMODAudioEngine::sharedEngine(); sub_775C20(v8, &v7); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v4, (int)v8); sub_774008(v8); if ( !isMusicPlaying ) { v6 = FMODAudioEngine::sharedEngine(); sub_775C20(v9, &v7); FMODAudioEngine::playMusic((FMOD::Channel *)v6, (int)v9, 1, 0.0, 0); sub_774008(v9); } sub_774008(&v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source