The name might change from the description

This commit is contained in:
Matt Nadareski
2016-04-21 14:40:34 -07:00
parent 3185aa3fa6
commit fa84a0865b

View File

@@ -116,7 +116,7 @@ namespace SabreTools
"", "", "", "", _forceunpack, !RomManipulation.IsXmlDat(filename), Path.GetDirectoryName(filename), outroms, _logger);
// Remove the original file if different and inform the user
if (Path.GetExtension(filename) != (RomManipulation.IsXmlDat(filename) ? ".xml" : ".dat"))
if (filename != RomManipulation.GetDatDescription(filename, _logger) + (RomManipulation.IsXmlDat(filename) ? ".xml" : ".dat"))
{
try
{