1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-10-02 21:25:51 -05:00

Added a command line option (-c, --config) to load a configuration file through the command line parameters (#59)

This commit is contained in:
Iván Mestre
2024-10-22 20:48:59 -03:00
committed by GitHub
parent 68092bf00b
commit 49574a99f5
3 changed files with 35 additions and 0 deletions

View File

@@ -150,6 +150,11 @@ namespace Ryujinx.Ava
ConfigurationPath = appDataConfigurationPath;
}
if (!string.IsNullOrEmpty(CommandLineState.OverrideConfigFile) && File.Exists(CommandLineState.OverrideConfigFile))
{
ConfigurationPath = CommandLineState.OverrideConfigFile;
}
if (ConfigurationPath == null)
{
// No configuration, we load the default values and save it to disk