mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-31 21:52:00 +00:00
fixups
This commit is contained in:
parent
a477658b85
commit
75fa7c7d4d
1 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue