Implement -p or --profile command line argument (#2947)
* Implement -p or --profile command line argument * Put command line logic all in Program and reference it elsewhere * Address feedback
This commit is contained in:
parent
3705c20668
commit
a3dd04deef
3 changed files with 24 additions and 3 deletions
|
@ -27,6 +27,8 @@ namespace Ryujinx
|
|||
|
||||
public static string ConfigurationPath { get; set; }
|
||||
|
||||
public static string CommandLineProfile { get; set; }
|
||||
|
||||
[DllImport("libX11")]
|
||||
private extern static int XInitThreads();
|
||||
|
||||
|
@ -52,6 +54,17 @@ namespace Ryujinx
|
|||
|
||||
baseDirPathArg = args[++i];
|
||||
}
|
||||
else if (arg == "-p" || arg == "--profile")
|
||||
{
|
||||
if (i + 1 >= args.Length)
|
||||
{
|
||||
Logger.Error?.Print(LogClass.Application, $"Invalid option '{arg}'");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
CommandLineProfile = args[++i];
|
||||
}
|
||||
else if (arg == "-f" || arg == "--fullscreen")
|
||||
{
|
||||
startFullscreenArg = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue