mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Case-insensitivity is assumed here, apparently
This commit is contained in:
@@ -2827,7 +2827,8 @@ 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 == datItem.Name).Count() == 0 && !this[game].Contains(datItem))
|
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);
|
||||||
@@ -2888,7 +2889,8 @@ namespace SabreTools.Library.DatFiles
|
|||||||
{
|
{
|
||||||
DatItem datItem = (DatItem)item.Clone();
|
DatItem datItem = (DatItem)item.Clone();
|
||||||
datItem.CopyMachineInformation(copyFrom);
|
datItem.CopyMachineInformation(copyFrom);
|
||||||
if (this[game].Where(i => i.Name == datItem.Name).Count() == 0 && !this[game].Contains(datItem))
|
if (this[game].Where(i => i.Name.ToLowerInvariant() == datItem.Name.ToLowerInvariant()).Count() == 0
|
||||||
|
&& !this[game].Contains(datItem))
|
||||||
{
|
{
|
||||||
Add(game, datItem);
|
Add(game, datItem);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user