Fix issue where no blank folders resulted in no end machine tag

This commit is contained in:
Matt Nadareski
2016-05-25 11:59:08 -07:00
parent 2d58e72ebc
commit 27f6885dde

View File

@@ -414,6 +414,12 @@ namespace SabreTools
}
}
// If we had roms but not blanks, create an artifical rom for the purposes of outputting
if (lastparent != null && _datdata.Roms.Count == 0)
{
_datdata.Roms.Add("temp", new List<RomData>());
}
// Now write the final piece and close the output stream
Output.WriteFooter(sw, _datdata, 0, _logger);
sw.Close();