Better shorthand, change internal naming

This commit is contained in:
Matt Nadareski
2020-09-07 22:57:44 -07:00
parent 308de8dd73
commit e34f50c464
9 changed files with 26 additions and 22 deletions

View File

@@ -981,16 +981,16 @@ namespace SabreTools.Library.DatFiles
}
// SabreDAT
if (DatFormat.HasFlag(DatFormat.SabreDAT))
if (DatFormat.HasFlag(DatFormat.SabreXML))
{
if (usedExtensions.Contains(".xml"))
{
outfileNames.Add(DatFormat.SabreDAT, CreateOutFileNamesHelper(outDir, ".sd.xml", overwrite));
outfileNames.Add(DatFormat.SabreXML, CreateOutFileNamesHelper(outDir, ".sd.xml", overwrite));
usedExtensions.Add(".sd.xml");
}
else
{
outfileNames.Add(DatFormat.SabreDAT, CreateOutFileNamesHelper(outDir, ".xml", overwrite));
outfileNames.Add(DatFormat.SabreXML, CreateOutFileNamesHelper(outDir, ".xml", overwrite));
usedExtensions.Add(".xml");
}
}