// // GameManager::playMenuMusic from 0x416828 to 0x4168d2 (170 bytes) // // 1 xrefs: // > OptionsLayer::musicSliderChanged @ 0x52c97a // // 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:47:41 +0000 // char **__fastcall GameManager::playMenuMusic(GameManager *this) { GameManager *v2; // r0 FMODAudioEngine *GameVariable; // r0 FMODAudioEngine *v4; // r0 int *MenuMusicFile; // r0 FMODAudioEngine *v7; // r7 int v8; // r3 _BOOL4 isMusicPlaying; // r7 FMODAudioEngine *v10; // r0 FMODAudioEngine *v11; // r7 _BYTE v12[12]; // [sp+8h] [bp-2Ch] BYREF int v13[3]; // [sp+14h] [bp-20h] BYREF int v14[3]; // [sp+20h] [bp-14h] BYREF v2 = (GameManager *)GameManager::sharedState(this); GameVariable = (FMODAudioEngine *)GameManager::getGameVariable(v2, "0122"); if ( GameVariable ) { v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(GameVariable); return FMODAudioEngine::stopAllMusic(v4, 1); } else { MenuMusicFile = GameManager::getMenuMusicFile((GameManager *)v12, (int)this); v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)MenuMusicFile); std::string::basic_string(v13, (int)v12); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v7, (unsigned __int8 *)v13, 0, v8); v10 = (FMODAudioEngine *)std::string::~string((int)v13); if ( !isMusicPlaying ) { v11 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v10); std::string::basic_string(v14, (int)v12); FMODAudioEngine::playMusic(v11, (int)v14, 1, 0.0, 0); std::string::~string((int)v14); } return (char **)std::string::~string((int)v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source