Metadata code cleanup

This commit is contained in:
Matt Nadareski
2026-03-26 20:40:49 -04:00
parent 3a3b20df11
commit 29620c0c4f
22 changed files with 49 additions and 53 deletions

View File

@@ -494,7 +494,7 @@ namespace SabreTools.Metadata.DatFiles
}
// If the parent doesn't already contain this item, add to subfolder of parent
else if (!GetItemsForBucketDB(cloneOf).Values.Contains(item.Value) || skipDedup)
else if (!GetItemsForBucketDB(cloneOf).ContainsValue(item.Value) || skipDedup)
{
if (subfolder)
rom.SetName($"{machineName}\\{rom.GetName()}");
@@ -505,7 +505,7 @@ namespace SabreTools.Metadata.DatFiles
}
// All other that would be missing to subfolder of parent
else if (!GetItemsForBucketDB(cloneOf).Values.Contains(item.Value))
else if (!GetItemsForBucketDB(cloneOf).ContainsValue(item.Value))
{
if (subfolder)
item.Value.SetName($"{machineName}\\{item.Value.GetName()}");