This commit is contained in:
Marco Carvalho 2024-12-27 13:29:02 -03:00
parent 57d1486da9
commit 00b86407a2
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ namespace ARMeilleure.Decoders.Optimizations
} }
} }
List<Block> newBlocks = new (blocks.Count); List<Block> newBlocks = new(blocks.Count);
// Finally, rebuild decoded block list, ignoring blocks outside the contiguous range. // Finally, rebuild decoded block list, ignoring blocks outside the contiguous range.
for (int i = 0; i < blocks.Count; i++) for (int i = 0; i < blocks.Count; i++)

View File

@ -277,7 +277,7 @@ namespace ARMeilleure.Instructions
{ {
int elems = op.GetBytesCount() >> op.Size; int elems = op.GetBytesCount() >> op.Size;
(int Qx, int Ix)[] tableTuples = new (int, int)[length]; (int Qx, int Ix)[] tableTuples = new(int, int)[length];
for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)
{ {
tableTuples[i] = GetQuadwordAndSubindex(op.Vn + i, op.RegisterSize); tableTuples[i] = GetQuadwordAndSubindex(op.Vn + i, op.RegisterSize);

View File

@ -198,7 +198,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
{ {
if (_cache == null || index >= _cache.Length) if (_cache == null || index >= _cache.Length)
{ {
_cache = new (byte[], byte[])[Math.Max(index + 1, GetShadersCountFromLength(tocFileStream.Length))]; _cache = new(byte[], byte[])[Math.Max(index + 1, GetShadersCountFromLength(tocFileStream.Length))];
} }
(byte[] guestCode, byte[] cb1Data) = _cache[index]; (byte[] guestCode, byte[] cb1Data) = _cache[index];

View File

@ -752,7 +752,7 @@ namespace Ryujinx.HLE.HOS
patches[i] = new MemPatch(); patches[i] = new MemPatch();
} }
List<string> buildIds = new (programs.Length); List<string> buildIds = new(programs.Length);
foreach (IExecutable p in programs) foreach (IExecutable p in programs)
{ {