summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-17 04:16:28 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-17 04:17:30 +0100
commit0a88c7dbbe627583b307933169c07bcd10bc18e1 (patch)
tree4b7a2498abe631e9fb00bef6cf57ceda520f74cf /src
parentyuzu: Write to config file on important config changes (diff)
downloadyuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.gz
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.bz2
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.lz
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.xz
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.zst
yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.zip
Diffstat (limited to 'src')
-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 c2542c3ba..5560a30bd 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() {