// // PlayLayer::startMusic from 0x5e4508 to 0x5e45e8 (224 bytes) // // 4 xrefs: // > PlayLayer::startGame @ 0x5e4648 // > PlayLayer::startGameDelayed @ 0x5e4658 // > PlayLayer::resetLevel @ 0x5e5994 // > @ 0x6fb40 // // 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) { float *v1; // x19 FMODAudioEngine *v3; // x0 float m_levelTime; // s0 FMODAudioEngine *v5; // x0 CheckpointObject *Checkpoint; // x0 v1 = &a1->m_varianceValues.__elems_[1975]; if ( !a1->m_playerDied && a1->m_started && !a1->m_currentCheckpoint ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::getBackgroundMusicVolume(v3); if ( !*((_BYTE *)v1 + 2632) ) 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); } } *((_BYTE *)v1 + 2632) = 0; *((_BYTE *)v1 + 1862) = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source