Fix the cracks in the armor

This commit is contained in:
Matt Nadareski
2020-08-27 20:56:50 -07:00
parent 7cd413bea1
commit 335f160ace
6 changed files with 70 additions and 77 deletions

View File

@@ -77,21 +77,24 @@ namespace SabreTools.Features
// Clone the base Dat for information
DatFile datdata = DatFile.Create(basedat.Header);
// Get the base path and fill the header, if needed
string basePath = Path.GetFullPath(path);
datdata.FillHeaderFromPath(basePath, noAutomaticDate);
// Now populate from the path
bool success = datdata.PopulateFromDir(
basePath,
omitFromScan,
noAutomaticDate,
asFiles,
skipFileType,
addBlankFiles,
addFileDates,
copyFiles,
Extras,
Filter);
copyFiles);
if (success)
{
datdata.ApplyExtras(Extras);
datdata.ApplyFilter(Filter, false);
datdata.Write(OutputDir);
}
else