From afecb551c59b5b0e99eca68a0ce09093090418c5 Mon Sep 17 00:00:00 2001 From: Thog Date: Sun, 3 May 2020 12:08:21 +0200 Subject: [PATCH] ui: fix major regression on SaveConfig --- Ryujinx/Ui/ControllerWindow.cs | 2 ++ Ryujinx/Ui/MainWindow.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Ryujinx/Ui/ControllerWindow.cs b/Ryujinx/Ui/ControllerWindow.cs index 581c7d56..06541743 100644 --- a/Ryujinx/Ui/ControllerWindow.cs +++ b/Ryujinx/Ui/ControllerWindow.cs @@ -914,6 +914,8 @@ namespace Ryujinx.Ui } } + MainWindow.SaveConfig(); + Dispose(); } diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 756ca231..fb87df71 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -558,7 +558,7 @@ namespace Ryujinx.Ui public static void SaveConfig() { - ConfigurationState.Instance.ToFileFormat().SaveConfig(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.json")); + ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath); } private void End(HLE.Switch device)