Clear format and parse

This commit is contained in:
Matt Nadareski
2025-04-30 10:44:31 -04:00
parent f3578bca18
commit 53977b247d

View File

@@ -472,7 +472,10 @@ namespace SabreTools.Features
|| currentFormat.HasFlag(DatFormat.TSV); || currentFormat.HasFlag(DatFormat.TSV);
#endif #endif
// Clear format and parse
datFile.Header.RemoveField(DatHeader.DatFormatKey);
Parser.ParseInto(datFile, inputPath.CurrentPath, keep: true, keepext: isSeparatedFile); Parser.ParseInto(datFile, inputPath.CurrentPath, keep: true, keepext: isSeparatedFile);
datFile.Header.SetFieldValue<DatFormat>(DatHeader.DatFormatKey, currentFormat);
// Perform additional processing steps // Perform additional processing steps
AdditionalProcessing(datFile); AdditionalProcessing(datFile);