// // PlayLayer::startMusic from 0x31f2e0 to 0x31f394 (180 bytes) // // 3 xrefs: // > PlayLayer::startGame @ 0x31f3ca // > PlayLayer::startGameDelayed @ 0x31f3d6 // > PlayLayer::resetLevel @ 0x31fdc6 // // 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 PlayLayer::startMusic(PlayLayer *a1) { FMODAudioEngine *v2; // r0 float m_levelTime; // s15 CheckpointObject *Checkpoint; // r0 FMODAudioEngine *v5; // r0 if ( !a1->m_playerDied && a1->m_started && !a1->m_currentCheckpoint ) { v2 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::getBackgroundMusicVolume(v2); if ( !a1->m_musicPrepared ) PlayLayer::prepareMusic(a1, 0); GJBaseGameLayer::processQueuedAudioTriggers(a1); GJBaseGameLayer::updateProximityVolumeEffects(a1); if ( a1->m_gameState.m_levelTime <= 0.0 && a1->m_levelSettings->m_fadeIn ) { v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::fadeInMusic(v5, 2.0, 0); } if ( a1->m_startPosObject ) { GJBaseGameLayer::pauseAudio(a1); m_levelTime = a1->m_gameState.m_levelTime; GJBaseGameLayer::processActivatedAudioTriggers(a1, m_levelTime); if ( !a1->m_currentCheckpoint ) { Checkpoint = PlayLayer::createCheckpoint(a1); a1->m_currentCheckpoint = Checkpoint; cocos2d::CCObject::retain(Checkpoint); } } a1->m_musicPrepared = 0; a1->m_audioPaused = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source