diff options
| author | 2023-02-16 21:16:28 -0600 | |
|---|---|---|
| committer | 2023-02-16 21:17:30 -0600 | |
| commit | 0a88c7dbbe627583b307933169c07bcd10bc18e1 (patch) | |
| tree | 4b7a2498abe631e9fb00bef6cf57ceda520f74cf /src | |
| parent | yuzu: Write to config file on important config changes (diff) | |
| download | yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.gz yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.tar.xz yuzu-0a88c7dbbe627583b307933169c07bcd10bc18e1.zip | |
yuzu: Shutdown game on restart to reload per game config
Diffstat (limited to 'src')
| -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() { | |||
| 3018 | if (!system->IsPoweredOn()) { | 3018 | if (!system->IsPoweredOn()) { |
| 3019 | return; | 3019 | return; |
| 3020 | } | 3020 | } |
| 3021 | // Make a copy since BootGame edits game_path | 3021 | // Make a copy since ShutdownGame edits game_path |
| 3022 | BootGame(QString(current_game_path)); | 3022 | const auto current_game = QString(current_game_path); |
| 3023 | ShutdownGame(); | ||
| 3024 | BootGame(current_game); | ||
| 3023 | } | 3025 | } |
| 3024 | 3026 | ||
| 3025 | void GMainWindow::OnPauseGame() { | 3027 | void GMainWindow::OnPauseGame() { |