This commit is contained in:
Marco Carvalho 2025-01-04 23:37:18 -03:00
parent edbd4c73e2
commit 07c5ab9894
3 changed files with 50 additions and 50 deletions

View File

@ -83,7 +83,7 @@ namespace Ryujinx.BuildValidationTasks
if (isGitRunner && encounteredIssue)
throw new JsonException("1 or more locales are invalid!");
JsonSerializerOptions jsonOptions = new JsonSerializerOptions()
JsonSerializerOptions jsonOptions = new()
{
WriteIndented = true,
NewLine = "\n",

View File

@ -419,6 +419,6 @@ namespace Ryujinx.Headless
[Value(0, MetaName = "input", HelpText = "Input to load.", Required = true)]
public string InputPath { get; set; }
public SafeDictionary<PlayerIndex, InputConfig> InheritedInputConfigs = new();
public SafeDictionary<PlayerIndex, InputConfig> InheritedInputConfigs = [];
}
}

View File

@ -674,7 +674,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
if (EnableShaderTranslationDelay)
Apply(DirtyHack.ShaderTranslationDelay, ShaderTranslationDelay);
return enabledHacks.ToArray();
return [.. enabledHacks];
void Apply(DirtyHack hack, int value = 0)
{