mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Device roms MAY have duplicate hashes
This commit is contained in:
@@ -2898,8 +2898,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
DatItem datItem = (DatItem)item.Clone();
|
DatItem datItem = (DatItem)item.Clone();
|
||||||
newdevs.AddRange(datItem.Devices ?? new List<string>());
|
newdevs.AddRange(datItem.Devices ?? new List<string>());
|
||||||
datItem.CopyMachineInformation(copyFrom);
|
datItem.CopyMachineInformation(copyFrom);
|
||||||
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0
|
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0)
|
||||||
&& !this[game].Contains(datItem))
|
|
||||||
{
|
{
|
||||||
foundnew = true;
|
foundnew = true;
|
||||||
Add(game, datItem);
|
Add(game, datItem);
|
||||||
@@ -2938,8 +2937,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
DatItem datItem = (DatItem)item.Clone();
|
DatItem datItem = (DatItem)item.Clone();
|
||||||
newslotopts.AddRange(datItem.SlotOptions ?? new List<string>());
|
newslotopts.AddRange(datItem.SlotOptions ?? new List<string>());
|
||||||
datItem.CopyMachineInformation(copyFrom);
|
datItem.CopyMachineInformation(copyFrom);
|
||||||
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0
|
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0)
|
||||||
&& !this[game].Contains(datItem))
|
|
||||||
{
|
{
|
||||||
foundnew = true;
|
foundnew = true;
|
||||||
Add(game, datItem);
|
Add(game, datItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user