[DatFile] Device roms MAY have duplicate hashes

This commit is contained in:
Matt Nadareski
2018-03-21 02:18:31 -07:00
parent 37b8d1bc8a
commit b995aba122

View File

@@ -2898,8 +2898,7 @@ namespace SabreTools.Library.DatFiles
DatItem datItem = (DatItem)item.Clone();
newdevs.AddRange(datItem.Devices ?? new List<string>());
datItem.CopyMachineInformation(copyFrom);
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0
&& !this[game].Contains(datItem))
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0)
{
foundnew = true;
Add(game, datItem);
@@ -2938,8 +2937,7 @@ namespace SabreTools.Library.DatFiles
DatItem datItem = (DatItem)item.Clone();
newslotopts.AddRange(datItem.SlotOptions ?? new List<string>());
datItem.CopyMachineInformation(copyFrom);
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0
&& !this[game].Contains(datItem))
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0)
{
foundnew = true;
Add(game, datItem);