mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add error if game contains more than one of the same item
This commit is contained in:
@@ -138,6 +138,13 @@ namespace SabreTools.Helper.Dats
|
|||||||
{
|
{
|
||||||
sortable.Add(newkey, new List<DatItem>());
|
sortable.Add(newkey, new List<DatItem>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Here, we want to see if there is a duplicate-named file already in the game
|
||||||
|
if (sortable[newkey].Where(i => i.Name == rom.Name).Count() > 0)
|
||||||
|
{
|
||||||
|
logger.Error("Duplicate named-file '" + rom.Name + "' detected in machine '" + newkey + "'");
|
||||||
|
}
|
||||||
|
|
||||||
sortable[newkey].Add(rom);
|
sortable[newkey].Add(rom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user