mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add warning for odd merging case
This commit is contained in:
@@ -809,6 +809,14 @@ namespace SabreTools.Helper.Dats
|
|||||||
List<DatItem> items = this[game];
|
List<DatItem> items = this[game];
|
||||||
foreach (DatItem item in items)
|
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 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))
|
if (item.Type == ItemType.Disk && !this[parent].Select(i => i.Name).Contains(item.Name))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user