mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Remove extra merging logic, external program found to have issue
This commit is contained in:
@@ -809,23 +809,8 @@ namespace SabreTools.Helper.Dats
|
||||
List<DatItem> items = this[game];
|
||||
foreach (DatItem item in items)
|
||||
{
|
||||
// We want a log statement for a unique case so that bug reports can be filed
|
||||
if (item.Type == ItemType.Disk
|
||||
&& !this[parent].Select(i => i.Name).Contains(item.Name)
|
||||
&& this[parent].Contains(item))
|
||||
{
|
||||
logger.Warning("For disk '" + item.Name + "', a hash-duplicate was found with a different name in set '" + parent + "'");
|
||||
}
|
||||
|
||||
// If we have a disk, we have to see ONLY if the name is in the list
|
||||
if (item.Type == ItemType.Disk && !this[parent].Select(i => i.Name).Contains(item.Name))
|
||||
{
|
||||
item.Machine = parentMachine;
|
||||
this[parent].Add(item);
|
||||
}
|
||||
|
||||
// Otherwise, we want to add it normally
|
||||
else if (!this[parent].Contains(item))
|
||||
// If the parent doesn't already contain the item, add it
|
||||
if (!this[parent].Contains(item))
|
||||
{
|
||||
// TODO: Remove hack for just disks at a later date
|
||||
item.Name = (item.Type != ItemType.Disk ? item.Machine.Name + "\\" : "") + item.Name;
|
||||
|
||||
Reference in New Issue
Block a user