aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx/Program.cs')
-rw-r--r--src/Ryujinx/Program.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs
index 2e6ede44..836483d8 100644
--- a/src/Ryujinx/Program.cs
+++ b/src/Ryujinx/Program.cs
@@ -209,7 +209,7 @@ namespace Ryujinx
}
}
- // Check if graphics backend was overridden
+ // Check if graphics backend was overridden.
if (CommandLineState.OverrideGraphicsBackend != null)
{
if (CommandLineState.OverrideGraphicsBackend.ToLower() == "opengl")
@@ -224,7 +224,19 @@ namespace Ryujinx
}
}
- // Check if docked mode was overriden.
+ // Check if HideCursor was overridden.
+ if (CommandLineState.OverrideHideCursor is not null)
+ {
+ ConfigurationState.Instance.HideCursor.Value = CommandLineState.OverrideHideCursor!.ToLower() switch
+ {
+ "never" => HideCursorMode.Never,
+ "onidle" => HideCursorMode.OnIdle,
+ "always" => HideCursorMode.Always,
+ _ => ConfigurationState.Instance.HideCursor.Value
+ };
+ }
+
+ // Check if docked mode was overridden.
if (CommandLineState.OverrideDockedMode.HasValue)
{
ConfigurationState.Instance.System.EnableDockedMode.Value = CommandLineState.OverrideDockedMode.Value;