Add command line override for easier RenderDoc use.

This commit is contained in:
MutantAura 2024-03-17 15:15:11 +00:00
commit 2dcf8d575f
2 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,7 @@ namespace Ryujinx.UI.Common.Helper
public static string[] Arguments { get; private set; } public static string[] Arguments { get; private set; }
public static bool? OverrideDockedMode { 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 OverrideGraphicsBackend { get; private set; }
public static string OverrideHideCursor { get; private set; } public static string OverrideHideCursor { get; private set; }
public static string BaseDirPathArg { get; private set; } public static string BaseDirPathArg { get; private set; }
@ -87,6 +88,9 @@ namespace Ryujinx.UI.Common.Helper
OverrideHideCursor = args[++i]; OverrideHideCursor = args[++i];
break; break;
case "--disable-angle":
OverrideHardwareAcceleration = true;
break;
default: default:
LaunchPathArg = arg; LaunchPathArg = arg;
break; break;

View file

@ -193,6 +193,12 @@ namespace Ryujinx.Ava
_ => ConfigurationState.Instance.HideCursor.Value, _ => ConfigurationState.Instance.HideCursor.Value,
}; };
} }
// Check if hardware-acceleration was overridden.
if (CommandLineState.OverrideHardwareAcceleration == true)
{
ConfigurationState.Instance.EnableHardwareAcceleration.Value = false;
}
} }
private static void PrintSystemInfo() private static void PrintSystemInfo()