mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove renaming based on description or vice versa
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user