Skip to content

Commit

Permalink
misc: chore: Fix object creation everywhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Jan 26, 2025
1 parent 9e1a13b commit c7db948
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Ryujinx.BuildValidationTasks/LocalesValidationTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public bool Execute(string projectPath, bool isGitRunner)
if (isGitRunner && encounteredIssue)
throw new JsonException("1 or more locales are invalid!");

JsonSerializerOptions jsonOptions = new JsonSerializerOptions()
JsonSerializerOptions jsonOptions = new()
{
WriteIndented = true,
NewLine = "\n",
Expand Down
16 changes: 8 additions & 8 deletions src/Ryujinx.Graphics.Texture/Utils/BC67Tables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ static class BC67Tables
{
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 =
Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.HLE.Generators/ServiceSyntaxReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Ryujinx.HLE.Generators
{
internal class ServiceSyntaxReceiver : ISyntaxReceiver
{
public HashSet<ClassDeclarationSyntax> Types = new HashSet<ClassDeclarationSyntax>();
public HashSet<ClassDeclarationSyntax> Types = new();

public void OnVisitSyntaxNode(SyntaxNode syntaxNode)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.Horizon.Common/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public struct Result : IEquatable<Result>
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; }

Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.Tests.Memory/MockVirtualMemoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ IEnumerable<HostMemoryRange> IVirtualMemoryManager.GetHostRegions(ulong va, ulon

IEnumerable<MemoryRange> IVirtualMemoryManager.GetPhysicalRegions(ulong va, ulong size)
{
return NoMappings ? Array.Empty<MemoryRange>() : new MemoryRange[] { new MemoryRange(va, size) };
return NoMappings ? Array.Empty<MemoryRange>() : new MemoryRange[] { new(va, size) };
}

public bool IsMapped(ulong va)
Expand Down

0 comments on commit c7db948

Please sign in to comment.