[DatFile] Wipe the romof/cloneof tags from merged output

This commit is contained in:
Matt Nadareski
2017-01-09 21:37:24 -08:00
parent ddd1c721b0
commit 3913d6cd8d
2 changed files with 17 additions and 5 deletions

View File

@@ -642,9 +642,21 @@ namespace SabreTools.Helper.Dats
}
}
// Finally, remove the old game so it's not picked up by the writer
// Then, remove the old game so it's not picked up by the writer
Remove(game);
}
// Finally, remove the romof and cloneof tags so it's not picked up by the manager
games = Keys.ToList();
foreach (string game in games)
{
List<DatItem> items = this[game];
foreach (DatItem item in items)
{
item.Machine.CloneOf = null;
item.Machine.RomOf = null;
}
}
}
/// <summary>
@@ -863,7 +875,7 @@ namespace SabreTools.Helper.Dats
item.Machine.CloneOf = null;
item.Machine.RomOf = null;
}
}
}
}
#endregion