2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #10482 from german77/gamelist

yuzu: Disable game list while game is running
This commit is contained in:
liamwhite 2023-06-01 09:05:18 -04:00 committed by GitHub
commit 1a4f3b37f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1798,6 +1798,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
} }
system->SetShuttingDown(false); system->SetShuttingDown(false);
game_list->setDisabled(true);
// Create and start the emulation thread // Create and start the emulation thread
emu_thread = std::make_unique<EmuThread>(*system); emu_thread = std::make_unique<EmuThread>(*system);
@ -1993,6 +1994,9 @@ void GMainWindow::OnEmulationStopped() {
// When closing the game, destroy the GLWindow to clear the context after the game is closed // When closing the game, destroy the GLWindow to clear the context after the game is closed
render_window->ReleaseRenderTarget(); render_window->ReleaseRenderTarget();
// Enable game list
game_list->setEnabled(true);
Settings::RestoreGlobalState(system->IsPoweredOn()); Settings::RestoreGlobalState(system->IsPoweredOn());
system->HIDCore().ReloadInputDevices(); system->HIDCore().ReloadInputDevices();
UpdateStatusButtons(); UpdateStatusButtons();