[DatFile] Make sure in DFD that roms always have a name

This commit is contained in:
Matt Nadareski
2017-03-30 18:02:52 -07:00
parent c96578bf33
commit c98b4d0dba

View File

@@ -365,6 +365,10 @@ namespace SabreTools.Helper.Dats
}
// Sanitize the names
if (romname == null)
{
romname = "";
}
if (gamename.StartsWith(Path.DirectorySeparatorChar.ToString()))
{
gamename = gamename.Substring(1);