Fix quirks in inplace outputs

This commit is contained in:
Matt Nadareski
2016-05-26 21:43:28 -07:00
parent c0fb12682c
commit 430536dfca
3 changed files with 10 additions and 3 deletions

View File

@@ -100,6 +100,12 @@ namespace SabreTools.Helper
datdata.FileName = Path.GetFileNameWithoutExtension(filename);
}
// If the output type isn't set already, get the internal output type
if (datdata.OutputFormat == OutputFormat.None)
{
datdata.OutputFormat = GetOutputFormat(filename);
}
// Make sure there's a dictionary to read to
if (datdata.Roms == null)
{