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:
Xpl0itR 2020-12-01 22:02:27 +00:00 committed by GitHub
parent f6d88558b1
commit bd8d28c59d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 83 additions and 6 deletions

View file

@ -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();