// // PlayLayer::togglePracticeMode from 0x3142fc to 0x3143a2 (166 bytes) // // 3 xrefs: // > PlayLayer::fullReset @ 0x314416 // > PauseLayer::onNormalMode @ 0x3a7b34 // > PauseLayer::onPracticeMode @ 0x3a7b5c // // 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::togglePracticeMode(PlayLayer *a1, bool a2) { bool *p_m_isPracticeMode; // r7 _BOOL4 v4; // r4 _BOOL4 m_practiceMusicSync; // r8 FMODAudioEngine *v6; // r0 FMODAudioEngine *v7; // r9 char v8; // [sp+8h] [bp-Ch] BYREF p_m_isPracticeMode = &a1->m_isPracticeMode; v4 = a2; if ( a1->m_isPracticeMode != a2 ) { *p_m_isPracticeMode = a2; PlayLayer::toggleDebugDraw(a1); UILayer::toggleCheckpointsMenu(a1->m_uiLayer, v4); if ( v4 ) { m_practiceMusicSync = a1->m_practiceMusicSync; if ( !a1->m_practiceMusicSync ) { v6 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v6, (bool)&dword_0 + 1); v7 = FMODAudioEngine::sharedEngine(); GameManager::sharedState(); GameManager::getPracticeMusicFile((GameManager *)&v8); FMODAudioEngine::playMusic((FMOD::Channel *)v7, (int)&v8, 1, 0.0, m_practiceMusicSync); sub_774008(&v8); } } else { PlayLayer::resetLevelFromStart(a1); } if ( *p_m_isPracticeMode ) PlayLayer::stopRecording(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source