[DatFile] Add temporary fix with logging statement

This commit is contained in:
Matt Nadareski
2016-09-19 22:01:16 -07:00
parent cea31f6c7b
commit 9a7be539fb

View File

@@ -2759,6 +2759,13 @@ namespace SabreTools.Helper
{
foreach (DatItem rom in roms)
{
// There's odd cases where there are items with System ID < 0. Skip them for now
if (rom.SystemID < 0)
{
logger.Warning("Item found with a <0 SystemID: " + rom.Name);
continue;
}
if (outDats[rom.SystemID].Files.ContainsKey(key))
{
outDats[rom.SystemID].Files[key].Add(rom);