Migrate unoffical keys

This commit is contained in:
Matt Nadareski
2024-03-10 16:49:07 -04:00
parent 7d974d4464
commit e411d90822
91 changed files with 1045 additions and 1472 deletions

View File

@@ -142,8 +142,8 @@ namespace SabreTools.DatTools
for (int i = 0; i < items.Count; i++)
{
// Unmatched items will have a source ID of int.MaxValue, remove all others
if (items[i].Source?.Index != int.MaxValue)
items[i].Remove = true;
if (items[i].GetFieldValue<Source?>(DatItem.SourceKey)?.Index != int.MaxValue)
items[i].SetFieldValue<bool>(DatItem.RemoveKey, true);
}
// Set the list back, just in case