1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-12 14:52:02 +00:00

Command line argument -f doesn't toggle 'Start games in fullscreen mode' (#2424)

Closes Ryujinx#2308
This commit is contained in:
mpnico 2021-07-06 20:04:21 +02:00 committed by GitHub
parent ddb8351375
commit 091edcebb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View file

@ -136,11 +136,6 @@ namespace Ryujinx
}
}
if (startFullscreenArg)
{
ConfigurationState.Instance.Ui.StartFullscreen.Value = true;
}
// Logging system information.
PrintSystemInfo();
@ -164,7 +159,7 @@ namespace Ryujinx
if (launchPathArg != null)
{
mainWindow.LoadApplication(launchPathArg);
mainWindow.LoadApplication(launchPathArg, startFullscreenArg);
}
if (ConfigurationState.Instance.CheckUpdatesOnStart.Value && Updater.CanUpdate(false))

View file

@ -562,7 +562,7 @@ namespace Ryujinx.Ui
}
}
public void LoadApplication(string path)
public void LoadApplication(string path, bool startFullscreen = false)
{
if (_gameLoaded)
{
@ -576,7 +576,7 @@ namespace Ryujinx.Ui
RendererWidget = CreateRendererWidget();
SwitchToRenderWidget();
SwitchToRenderWidget(startFullscreen);
InitializeSwitchInstance();
@ -769,7 +769,7 @@ namespace Ryujinx.Ui
}
}
private void SwitchToRenderWidget()
private void SwitchToRenderWidget(bool startFullscreen = false)
{
_viewBox.Remove(_gameTableWindow);
RendererWidget.Expand = true;
@ -782,7 +782,7 @@ namespace Ryujinx.Ui
{
ToggleExtraWidgets(false);
}
else if (ConfigurationState.Instance.Ui.StartFullscreen.Value)
else if (startFullscreen || ConfigurationState.Instance.Ui.StartFullscreen.Value)
{
FullScreen_Toggled(null, null);
}