Fix update output issue

This commit is contained in:
Matt Nadareski
2020-08-01 21:54:42 -07:00
parent af0931c0f6
commit 3027fb732a
3 changed files with 20 additions and 8 deletions

View File

@@ -181,10 +181,6 @@ namespace SabreTools.Features
else
datHeaders = userInputDat.PopulateUserData(inputFileNames, Filter);
// Merge all input files and write
if (updateMode.HasFlag(UpdateMode.Merge))
userInputDat.MergeNoDiff(inputFileNames, OutputDir);
// Output only DatItems that are duplicated across inputs
if (updateMode.HasFlag(UpdateMode.DiffDupesOnly))
userInputDat.DiffDuplicates(inputFileNames, OutputDir);
@@ -230,6 +226,11 @@ namespace SabreTools.Features
updateFields,
GetBoolean(features, OnlySameValue));
}
// Merge all input files and write
// This has to be last due to the SuperDAT handling
if (updateMode.HasFlag(UpdateMode.Merge))
userInputDat.MergeNoDiff(inputFileNames, OutputDir);
}
}
}