diff --git a/src/Ryujinx.BuildValidationTasks/LocalesValidationTask.cs b/src/Ryujinx.BuildValidationTasks/LocalesValidationTask.cs index 1f2c39e95..b8e14cd30 100644 --- a/src/Ryujinx.BuildValidationTasks/LocalesValidationTask.cs +++ b/src/Ryujinx.BuildValidationTasks/LocalesValidationTask.cs @@ -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", diff --git a/src/Ryujinx.Graphics.Texture/Utils/BC67Tables.cs b/src/Ryujinx.Graphics.Texture/Utils/BC67Tables.cs index 522538559..50102faf4 100644 --- a/src/Ryujinx.Graphics.Texture/Utils/BC67Tables.cs +++ b/src/Ryujinx.Graphics.Texture/Utils/BC67Tables.cs @@ -4,14 +4,14 @@ namespace Ryujinx.Graphics.Texture.Utils { public static readonly BC7ModeInfo[] BC7ModeInfos = new BC7ModeInfo[] { - new BC7ModeInfo(3, 4, 6, 0, 0, 3, 0, 4, 0), - new BC7ModeInfo(2, 6, 2, 0, 0, 3, 0, 6, 0), - new BC7ModeInfo(3, 6, 0, 0, 0, 2, 0, 5, 0), - new BC7ModeInfo(2, 6, 4, 0, 0, 2, 0, 7, 0), - new BC7ModeInfo(1, 0, 0, 2, 1, 2, 3, 5, 6), - new BC7ModeInfo(1, 0, 0, 2, 0, 2, 2, 7, 8), - new BC7ModeInfo(1, 0, 2, 0, 0, 4, 0, 7, 7), - new BC7ModeInfo(2, 6, 4, 0, 0, 2, 0, 5, 5), + new(3, 4, 6, 0, 0, 3, 0, 4, 0), + new(2, 6, 2, 0, 0, 3, 0, 6, 0), + new(3, 6, 0, 0, 0, 2, 0, 5, 0), + new(2, 6, 4, 0, 0, 2, 0, 7, 0), + new(1, 0, 0, 2, 1, 2, 3, 5, 6), + new(1, 0, 0, 2, 0, 2, 2, 7, 8), + new(1, 0, 2, 0, 0, 4, 0, 7, 7), + new(2, 6, 4, 0, 0, 2, 0, 5, 5), }; public static readonly byte[][] Weights = diff --git a/src/Ryujinx.HLE.Generators/ServiceSyntaxReceiver.cs b/src/Ryujinx.HLE.Generators/ServiceSyntaxReceiver.cs index e4269cb9a..b7ca5dfd2 100644 --- a/src/Ryujinx.HLE.Generators/ServiceSyntaxReceiver.cs +++ b/src/Ryujinx.HLE.Generators/ServiceSyntaxReceiver.cs @@ -6,7 +6,7 @@ namespace Ryujinx.HLE.Generators { internal class ServiceSyntaxReceiver : ISyntaxReceiver { - public HashSet Types = new HashSet(); + public HashSet Types = new(); public void OnVisitSyntaxNode(SyntaxNode syntaxNode) { diff --git a/src/Ryujinx.Horizon.Common/Result.cs b/src/Ryujinx.Horizon.Common/Result.cs index 4b120b847..bcbfbecd2 100644 --- a/src/Ryujinx.Horizon.Common/Result.cs +++ b/src/Ryujinx.Horizon.Common/Result.cs @@ -9,7 +9,7 @@ namespace Ryujinx.Horizon.Common private const int ModuleMax = 1 << ModuleBits; private const int DescriptionMax = 1 << DescriptionBits; - public static Result Success { get; } = new Result(0, 0); + public static Result Success { get; } = new(0, 0); public int ErrorCode { get; } diff --git a/src/Ryujinx.Tests.Memory/MockVirtualMemoryManager.cs b/src/Ryujinx.Tests.Memory/MockVirtualMemoryManager.cs index 3fe44db21..a01521c8f 100644 --- a/src/Ryujinx.Tests.Memory/MockVirtualMemoryManager.cs +++ b/src/Ryujinx.Tests.Memory/MockVirtualMemoryManager.cs @@ -85,7 +85,7 @@ namespace Ryujinx.Tests.Memory IEnumerable IVirtualMemoryManager.GetPhysicalRegions(ulong va, ulong size) { - return NoMappings ? Array.Empty() : new MemoryRange[] { new MemoryRange(va, size) }; + return NoMappings ? Array.Empty() : new MemoryRange[] { new(va, size) }; } public bool IsMapped(ulong va)