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

This commit is contained in:
Iván Mestre 2024-10-22 20:48:59 -03:00 committed by KeatonTheBot
parent 0380173937
commit 49b0927fd5
2 changed files with 30 additions and 0 deletions

View file

@ -151,6 +151,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