Prefer using collection expressions with implicit object creation when the type is clear
This commit is contained in:
@@ -350,7 +350,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
|
||||
/// <returns>True if the operation was successful, false otherwise</returns>
|
||||
private bool LoadTocEntries(Stream tocFileStream, ref BinarySerializer reader)
|
||||
{
|
||||
_toc = new Dictionary<uint, List<TocMemoryEntry>>();
|
||||
_toc = [];
|
||||
|
||||
TocEntry entry = new();
|
||||
int index = 0;
|
||||
@@ -429,7 +429,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
|
||||
{
|
||||
if (!_toc.TryGetValue(hash, out var list))
|
||||
{
|
||||
_toc.Add(hash, list = new List<TocMemoryEntry>());
|
||||
_toc.Add(hash, list = []);
|
||||
}
|
||||
|
||||
list.Add(new TocMemoryEntry(dataOffset, codeSize, cb1DataSize, index));
|
||||
|
||||
Reference in New Issue
Block a user