From 471034dc2e6a8d800b4458d18db9bd3733c30a14 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Mon, 9 Dec 2024 03:28:16 -0600 Subject: [PATCH] fixups --- src/Ryujinx/Program.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs index 5861bf684..014d3d394 100644 --- a/src/Ryujinx/Program.cs +++ b/src/Ryujinx/Program.cs @@ -113,6 +113,9 @@ namespace Ryujinx.Ava AppDomain.CurrentDomain.UnhandledException += (sender, e) => ProcessUnhandledException(sender, e.ExceptionObject as Exception, e.IsTerminating); AppDomain.CurrentDomain.ProcessExit += (_, _) => Exit(); + + // Setup base data directory. + AppDataManager.Initialize(CommandLineState.BaseDirPathArg); // Set the delegate for localizing the word "never" in the UI ApplicationData.LocalizedNever = () => LocaleManager.Instance[LocaleKeys.Never]; @@ -154,7 +157,7 @@ namespace Ryujinx.Ava } } - public static void ReloadConfig(string customConfigPath = null) + public static void ReloadConfig() { string localConfigurationPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ReleaseInformation.ConfigName); string appDataConfigurationPath = Path.Combine(AppDataManager.BaseDirPath, ReleaseInformation.ConfigName); @@ -168,10 +171,6 @@ namespace Ryujinx.Ava { ConfigurationPath = appDataConfigurationPath; } - else if (File.Exists(customConfigPath)) - { - ConfigurationPath = customConfigPath; - } if (ConfigurationPath == null) {