mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Migrate most DatItem conversion code
This commit is contained in:
@@ -96,8 +96,8 @@ namespace SabreTools.DatTools
|
||||
continue;
|
||||
|
||||
// Now we want to remove all duplicates from the DAT
|
||||
datFile.Items.GetDuplicates(new Rom(fileinfo))
|
||||
.AddRange(datFile.Items.GetDuplicates(new Disk(fileinfo)));
|
||||
datFile.Items.GetDuplicates(fileinfo.ConvertToRom())
|
||||
.AddRange(datFile.Items.GetDuplicates(fileinfo.ConvertToDisk()));
|
||||
}
|
||||
|
||||
watch.Stop();
|
||||
@@ -181,8 +181,8 @@ namespace SabreTools.DatTools
|
||||
continue;
|
||||
|
||||
// Now we want to remove all duplicates from the DAT
|
||||
datFile.ItemsDB.GetDuplicates(new KeyValuePair<long, DatItem>(-1, new Rom(fileinfo)))
|
||||
.Concat(datFile.ItemsDB.GetDuplicates(new KeyValuePair<long, DatItem>(-1, new Disk(fileinfo))));
|
||||
datFile.ItemsDB.GetDuplicates(new KeyValuePair<long, DatItem>(-1, fileinfo.ConvertToRom()))
|
||||
.Concat(datFile.ItemsDB.GetDuplicates(new KeyValuePair<long, DatItem>(-1, fileinfo.ConvertToDisk())));
|
||||
}
|
||||
|
||||
watch.Stop();
|
||||
|
||||
Reference in New Issue
Block a user