Kaynağa Gözat

yuzu: Shutdown game on restart to reload per game config

Narr the Reg 3 yıl önce
ebeveyn
işleme
0a88c7dbbe
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      src/yuzu/main.cpp

+ 4 - 2
src/yuzu/main.cpp

@@ -3018,8 +3018,10 @@ void GMainWindow::OnRestartGame() {
     if (!system->IsPoweredOn()) {
     if (!system->IsPoweredOn()) {
         return;
         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() {
 void GMainWindow::OnPauseGame() {