Remove renaming based on description or vice versa

This commit is contained in:
Matt Nadareski
2016-05-25 11:31:11 -07:00
parent 8323464e49
commit 24c7181bb0

View File

@@ -1437,12 +1437,6 @@ Make a selection:
}; };
datdata = RomManipulation.Parse(file, 0, 0, datdata, logger, true); datdata = RomManipulation.Parse(file, 0, 0, datdata, logger, true);
// Sometimes the description doesn't match the filename, change this
if (datdata.Description != Path.GetFileNameWithoutExtension(file))
{
datdata.Description = Path.GetFileNameWithoutExtension(file);
}
// If the extension matches, append ".new" to the filename // If the extension matches, append ".new" to the filename
string extension = (datdata.OutputFormat == OutputFormat.Xml || datdata.OutputFormat == OutputFormat.SabreDat ? ".xml" : ".dat"); string extension = (datdata.OutputFormat == OutputFormat.Xml || datdata.OutputFormat == OutputFormat.SabreDat ? ".xml" : ".dat");
if (outdir == "" && Path.GetExtension(file) == extension) if (outdir == "" && Path.GetExtension(file) == extension)