mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 22:28:52 +02:00
misc: chore: Replace Gommon functions with standard .NET equivalents (part 3)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using CommandLine;
|
||||
using Gommon;
|
||||
using Ryujinx.Common.Configuration;
|
||||
using Ryujinx.HLE;
|
||||
using Ryujinx.HLE.HOS.SystemState;
|
||||
@@ -149,8 +148,10 @@ namespace Ryujinx.Headless
|
||||
IgnoreControllerApplet = configurationState.IgnoreControllerApplet;
|
||||
|
||||
return;
|
||||
|
||||
bool NeedsOverride(string argKey) => originalArgs.None(arg => arg.TrimStart('-').EqualsIgnoreCase(OptionName(argKey)));
|
||||
|
||||
bool NeedsOverride(string argKey) =>
|
||||
argKey != null && originalArgs.None(arg =>
|
||||
arg.TrimStart('-').Equals(OptionName(argKey), StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
string OptionName(string propertyName) =>
|
||||
typeof(Options)!.GetProperty(propertyName)!.GetCustomAttribute<OptionAttribute>()!.LongName;
|
||||
|
||||
Reference in New Issue
Block a user