Replace ResourceTree IEnumerables with lists

This commit is contained in:
Asriel Camora 2023-11-30 10:01:49 -08:00
parent eb0e334437
commit b595a0da0f
No known key found for this signature in database
GPG key ID: 92B8372B278DDE41
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3567cf225b469dd5bb5f723e96e2abaaa4d16a1c
Subproject commit e2f578a903f4e2de6c5967eb92f1b5a0a413d287

View file

@ -86,7 +86,7 @@ internal static class ResourceTreeApiHelper
ActualPath = node.FullPath.ToString(),
ObjectAddress = node.ObjectAddress,
ResourceHandle = node.ResourceHandle,
Children = node.Children.Select(GetIpcNode).ToArray(),
Children = node.Children.Select(GetIpcNode).ToList(),
};
static Ipc.ResourceTree GetIpcTree(ResourceTree tree) =>
@ -94,7 +94,7 @@ internal static class ResourceTreeApiHelper
{
Name = tree.Name,
RaceCode = (ushort)tree.RaceCode,
Nodes = tree.Nodes.Select(GetIpcNode).ToArray(),
Nodes = tree.Nodes.Select(GetIpcNode).ToList(),
};
var resDictionary = new Dictionary<ushort, Ipc.ResourceTree>(4);