// // PlayLayer::resumeAndRestart from 0x5d275c to 0x5d28ac (336 bytes) // // 3 xrefs: // > PauseLayer::onRestart @ 0x6c6b00 // > PauseLayer::onRestartFull @ 0x6c6b40 // > @ 0x3c000 // // 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) { float *v2; // x19 _BOOL4 v4; // w21 FMODAudioEngine *v5; // x0 GameManager *v6; // x0 GameManager *v7; // x0 FMODAudioEngine *v8; // x0 FMODAudioEngine *v9; // x0 v2 = &a1->m_varianceValues.__elems_[1975]; v4 = a2; if ( !a1->m_isPracticeMode || a1->m_practiceMusicSync ) { if ( !a2 && a1->m_isPlatformer ) { v8 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllEffects(v8); v9 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v9, 0); } else { GJBaseGameLayer::resetAudio(a1); } *((_BYTE *)v2 + 2632) = 0; v5 = FMODAudioEngine::sharedEngine(); *((_BYTE *)v2 + 2192) = FMODAudioEngine::getBackgroundMusicVolume(v5) <= 0.0; } *((_BYTE *)v2 + 2503) = 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); v6 = GameManager::sharedState(); if ( GameManager::getGameVariable(v6, "0128") ) { PlatformToolbox::toggleLockCursor((bool)&dword_0 + 1); a1->onEnter(a1); if ( !v4 ) { LABEL_12: a1->resetLevel(a1); return; } } else { v7 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v7, "0024") ) PlatformToolbox::hideCursor(); a1->onEnter(a1); if ( !v4 ) goto LABEL_12; } PlayLayer::resetLevelFromStart(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source