Set FileName explictily where appropriate

This commit is contained in:
Matt Nadareski
2016-05-25 11:29:19 -07:00
parent 9303d41fb5
commit 8323464e49
6 changed files with 16 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ namespace SabreTools
Output.WriteDatfile(datdata, Path.GetDirectoryName(filename), _logger);
// Remove the original file if different and inform the user
if (filename != datdata.Description + (RomManipulation.GetOutputFormat(filename) == OutputFormat.Xml ? ".xml" : ".dat"))
if (filename != Style.CreateOutfileName(" ", datdata).Remove(0, 1))
{
try
{