diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-01-10 00:59:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 00:59:23 +0100 |
commit | e4413542b2199894453c8ba6dc67a86ee5add7bd (patch) | |
tree | 4036f37ecba4048da476297e3821b34352500cb5 /Ryujinx/Program.cs | |
parent | 8c720783f50051b28188a330f87d3b74bbe26cc7 (diff) |
Add command line arguments to override docked mode (#4239)1.1.530
* Add command line args for docked mode
* Apply suggestions from code review
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r-- | Ryujinx/Program.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index b1fedaad..56352a4c 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -3,8 +3,8 @@ using Ryujinx.Common; using Ryujinx.Common.Configuration; using Ryujinx.Common.GraphicsDriver; using Ryujinx.Common.Logging; -using Ryujinx.Common.SystemInterop; using Ryujinx.Common.SystemInfo; +using Ryujinx.Common.SystemInterop; using Ryujinx.Modules; using Ryujinx.SDL2.Common; using Ryujinx.Ui; @@ -271,6 +271,12 @@ namespace Ryujinx } } + // Check if docked mode was overriden. + if (CommandLineState.OverrideDockedMode.HasValue) + { + ConfigurationState.Instance.System.EnableDockedMode.Value = CommandLineState.OverrideDockedMode.Value; + } + // Logging system information. PrintSystemInfo(); |