diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-17 04:16:28 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-17 04:17:30 +0100 |
commit | 0a88c7dbbe627583b307933169c07bcd10bc18e1 (patch) | |
tree | 4b7a2498abe631e9fb00bef6cf57ceda520f74cf | |
parent | yuzu: Write to config file on important config changes (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/yuzu/main.cpp | 6 |
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() { |