// // PlayLayer::prepareMusic from 0x1001193b0 to 0x1001194a8 (248 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x100117298 // > PlayLayer::startMusic @ 0x10011984c // // 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 __fastcall PlayLayer::prepareMusic(PlayLayer *a1, bool a2) { bool *p_m_isPlatformer; // x22 FMODAudioEngine *v5; // x21 LevelSettingsObject *m_levelSettings; // x8 float v7; // s8 FMODAudioEngine *v8; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v10; // [xsp+1Fh] [xbp-31h] p_m_isPlatformer = &a1->m_isPlatformer; if ( (!a1->m_isPracticeMode || a1->m_practiceMusicSync) && !a1->m_playerDied ) { v5 = FMODAudioEngine::sharedEngine(); GJGameLevel::getAudioFileName((__int64)a1->m_level, __p); FMODAudioEngine::loadMusic(v5, __p, *p_m_isPlatformer, 0, 0, a1->m_levelSettings->m_dontReset, 1.0, 0.0, 1.0); if ( v10 < 0 ) operator delete(__p[0]); m_levelSettings = a1->m_levelSettings; if ( !m_levelSettings->m_dontReset ) { v7 = (a1->m_gameState.m_levelTime + m_levelSettings->m_songOffset) * 1000.0; v8 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::setMusicTimeMS(v8, (unsigned int)v7, a2, 0); } p_m_isPlatformer[2298] = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source