// // PlayLayer::resumeAndRestart from 0x314560 to 0x314640 (224 bytes) // // 2 xrefs: // > PauseLayer::onRestart @ 0x3a7b7e // > PauseLayer::onRestartFull @ 0x3a7ba2 // // 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::resumeAndRestart(PlayLayer *a1, bool a2) { _BOOL4 v3; // r5 FMODAudioEngine *v4; // r0 FMODAudioEngine *v5; // r0 FMODAudioEngine *v6; // r0 GameManager *v7; // r0 GameManager *v8; // r0 v3 = a2; if ( !a1->m_isPracticeMode || a1->m_practiceMusicSync ) { if ( !a2 && a1->m_isPlatformer ) { v4 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllEffects(v4); v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, 0); } else { GJBaseGameLayer::resetAudio(a1); } a1->m_musicPrepared = 0; v6 = FMODAudioEngine::sharedEngine(); a1->m_isSilent = FMODAudioEngine::getBackgroundMusicVolume(v6) <= 0.0; } a1->m_isPaused = 0; if ( BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) ) { BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) = 0; PlayerObject::releaseAllButtons(a1->m_player1); UILayer::resetAllButtons(a1->m_uiLayer); UILayer::toggleMenuVisibility(a1->m_uiLayer, 1); v7 = GameManager::sharedState(); if ( GameManager::getGameVariable(v7, "0128") ) { PlatformToolbox::toggleLockCursor((bool)&dword_0 + 1); } else { v8 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v8, "0024") ) PlatformToolbox::hideCursor(); } a1->onEnter(a1); if ( v3 ) PlayLayer::resetLevelFromStart(a1); else a1->resetLevel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source