// // PlayLayer::startMusic from 0x100119804 to 0x1001198dc (216 bytes) // // 3 xrefs: // > PlayLayer::startGame @ 0x10011951c // > PlayLayer::startGameDelayed @ 0x1001198e8 // > PlayLayer::resetLevel @ 0x100122300 // // 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) { int *p_m_activeGradients; // x20 FMODAudioEngine *v3; // x0 FMODAudioEngine *v4; // x0 float m_levelTime; // s0 CheckpointObject *Checkpoint; // x0 p_m_activeGradients = &a1->m_activeGradients; if ( !a1->m_playerDied && a1->m_started && !a1->m_currentCheckpoint ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::getBackgroundMusicVolume(v3); if ( (p_m_activeGradients[534] & 1) == 0 ) PlayLayer::prepareMusic(a1, 0); GJBaseGameLayer::processQueuedAudioTriggers(a1); GJBaseGameLayer::updateProximityVolumeEffects(a1); if ( a1->m_gameState.m_levelTime <= 0.0 && a1->m_levelSettings->m_fadeIn ) { v4 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::fadeInMusic(v4, 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 *)p_m_activeGradients + 2136) = 0; *((_BYTE *)p_m_activeGradients + 1382) = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source