// // PlayLayer::startMusic from 0x1000b3250 to 0x1000b3343 (243 bytes) // // 3 xrefs: // > PlayLayer::startGame @ 0x1000b2f1f // > PlayLayer::startGameDelayed @ 0x1000b335c // > PlayLayer::resetLevel @ 0x1000bed51 // // 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::startMusic(PlayLayer *a1) { FMODAudioEngine *v1; // rax PlayLayer *v2; // rax FMODAudioEngine *v3; // rax float m_levelTime; // xmm0_4 CheckpointObject *Checkpoint; // rax if ( !a1->m_playerDied && a1->m_started && !a1->m_currentCheckpoint ) { v1 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::getBackgroundMusicVolume(v1); if ( !a1->m_musicPrepared ) PlayLayer::prepareMusic(a1, 0); GJBaseGameLayer::processQueuedAudioTriggers(a1); GJBaseGameLayer::updateProximityVolumeEffects(a1); v2 = a1; if ( a1->m_gameState.m_levelTime <= 0.0 && a1->m_levelSettings->m_fadeIn ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::fadeInMusic(v3, 2.0, 0); v2 = a1; } if ( v2->m_startPosObject ) { GJBaseGameLayer::pauseAudio(a1); m_levelTime = a1->m_gameState.m_levelTime; GJBaseGameLayer::processActivatedAudioTriggers(a1, m_levelTime); v2 = a1; if ( !a1->m_currentCheckpoint ) { Checkpoint = PlayLayer::createCheckpoint(a1); a1->m_currentCheckpoint = Checkpoint; cocos2d::CCObject::retain(Checkpoint); v2 = a1; } } v2->m_musicPrepared = 0; v2->m_audioPaused = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source