Add option to start games in fullscreen mode (#1580)
* Add option to start games in fullscreen mode * Add command line option * Use pascal case on menu item
This commit is contained in:
parent
f6d88558b1
commit
bd8d28c59d
7 changed files with 83 additions and 6 deletions
|
@ -25,6 +25,7 @@ namespace Ryujinx
|
|||
// Parse Arguments
|
||||
string launchPath = null;
|
||||
string baseDirPath = null;
|
||||
bool startFullscreen = false;
|
||||
for (int i = 0; i < args.Length; ++i)
|
||||
{
|
||||
string arg = args[i];
|
||||
|
@ -39,6 +40,10 @@ namespace Ryujinx
|
|||
|
||||
baseDirPath = args[++i];
|
||||
}
|
||||
else if (arg == "-f" || arg == "--fullscreen")
|
||||
{
|
||||
startFullscreen = true;
|
||||
}
|
||||
else if (launchPath == null)
|
||||
{
|
||||
launchPath = arg;
|
||||
|
@ -107,6 +112,11 @@ namespace Ryujinx
|
|||
ConfigurationState.Instance.ToFileFormat().SaveConfig(appDataConfigurationPath);
|
||||
}
|
||||
|
||||
if (startFullscreen)
|
||||
{
|
||||
ConfigurationState.Instance.Ui.StartFullscreen.Value = true;
|
||||
}
|
||||
|
||||
PrintSystemInfo();
|
||||
|
||||
Application.Init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue