aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-16 21:16:28 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-16 21:17:30 -0600
commit0a88c7dbbe627583b307933169c07bcd10bc18e1 (patch)
tree4b7a2498abe631e9fb00bef6cf57ceda520f74cf /src/yuzu/main.cpp
parentdf9c8bdfd9019a42ede7ea90198567ae499afac8 (diff)
yuzu: Shutdown game on restart to reload per game config
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c2542c3bab..5560a30bd6 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3018,8 +3018,10 @@ void GMainWindow::OnRestartGame() {
if (!system->IsPoweredOn()) {
return;
}
- // Make a copy since BootGame edits game_path
- BootGame(QString(current_game_path));
+ // Make a copy since ShutdownGame edits game_path
+ const auto current_game = QString(current_game_path);
+ ShutdownGame();
+ BootGame(current_game);
}
void GMainWindow::OnPauseGame() {