aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.UI.Common/Helper/CommandLineState.cs
diff options
context:
space:
mode:
authorMutantAura <44103205+MutantAura@users.noreply.github.com>2024-04-06 18:58:02 +0100
committerGitHub <noreply@github.com>2024-04-06 14:58:02 -0300
commit451a28afb80996a7859659befaa602fe2db5c119 (patch)
treef1c9b028091f69b75a42b02cd54ba0b26596e30c /src/Ryujinx.UI.Common/Helper/CommandLineState.cs
parent12b235700cf104163bf8030df0feb6357a40f9d3 (diff)
misc: Add ANGLE configuration option to JSON and CLI (#6520)1.1.1262
* Add hardware-acceleration toggle to ConfigurationState. * Add command line override for easier RenderDoc use. * Adjust CLI arguments. * fix whitespace format check * fix copypasta in comment * Add X11 rendering mode toggle * Remove ANGLE specific comments.
Diffstat (limited to 'src/Ryujinx.UI.Common/Helper/CommandLineState.cs')
-rw-r--r--src/Ryujinx.UI.Common/Helper/CommandLineState.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Ryujinx.UI.Common/Helper/CommandLineState.cs b/src/Ryujinx.UI.Common/Helper/CommandLineState.cs
index c3c5bd37..6de963a7 100644
--- a/src/Ryujinx.UI.Common/Helper/CommandLineState.cs
+++ b/src/Ryujinx.UI.Common/Helper/CommandLineState.cs
@@ -8,6 +8,7 @@ namespace Ryujinx.UI.Common.Helper
public static string[] Arguments { get; private set; }
public static bool? OverrideDockedMode { get; private set; }
+ public static bool? OverrideHardwareAcceleration { get; private set; }
public static string OverrideGraphicsBackend { get; private set; }
public static string OverrideHideCursor { get; private set; }
public static string BaseDirPathArg { get; private set; }
@@ -87,6 +88,12 @@ namespace Ryujinx.UI.Common.Helper
OverrideHideCursor = args[++i];
break;
+ case "--software-gui":
+ OverrideHardwareAcceleration = false;
+ break;
+ case "--hardware-gui":
+ OverrideHardwareAcceleration = true;
+ break;
default:
LaunchPathArg = arg;
break;