mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Better coments
This commit is contained in:
@@ -94,10 +94,13 @@ namespace SabreTools.Features
|
|||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
|
// Perform additional processing steps
|
||||||
datdata.ApplyExtras(Extras);
|
datdata.ApplyExtras(Extras);
|
||||||
datdata.ApplySplitting(splitType, false);
|
datdata.ApplySplitting(splitType, false);
|
||||||
datdata.ApplyFilter(Filter);
|
datdata.ApplyFilter(Filter);
|
||||||
datdata.ApplyCleaning(Cleaner);
|
datdata.ApplyCleaning(Cleaner);
|
||||||
|
|
||||||
|
// Write out the file
|
||||||
datdata.Write(OutputDir);
|
datdata.Write(OutputDir);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -166,6 +166,8 @@ namespace SabreTools.Features
|
|||||||
keepext: datFile.Header.DatFormat.HasFlag(DatFormat.TSV)
|
keepext: datFile.Header.DatFormat.HasFlag(DatFormat.TSV)
|
||||||
|| datFile.Header.DatFormat.HasFlag(DatFormat.CSV)
|
|| datFile.Header.DatFormat.HasFlag(DatFormat.CSV)
|
||||||
|| datFile.Header.DatFormat.HasFlag(DatFormat.SSV));
|
|| datFile.Header.DatFormat.HasFlag(DatFormat.SSV));
|
||||||
|
|
||||||
|
// Perform additional processing steps
|
||||||
datFile.ApplyExtras(Extras);
|
datFile.ApplyExtras(Extras);
|
||||||
datFile.ApplySplitting(GetSplitType(features), false);
|
datFile.ApplySplitting(GetSplitType(features), false);
|
||||||
datFile.ApplyFilter(Filter);
|
datFile.ApplyFilter(Filter);
|
||||||
@@ -203,7 +205,7 @@ namespace SabreTools.Features
|
|||||||
else
|
else
|
||||||
datHeaders = userInputDat.PopulateUserData(inputPaths);
|
datHeaders = userInputDat.PopulateUserData(inputPaths);
|
||||||
|
|
||||||
// Apply the extras, filter, and cleaning
|
// Perform additional processing steps
|
||||||
userInputDat.ApplyExtras(Extras);
|
userInputDat.ApplyExtras(Extras);
|
||||||
userInputDat.ApplySplitting(GetSplitType(features), false);
|
userInputDat.ApplySplitting(GetSplitType(features), false);
|
||||||
userInputDat.ApplyFilter(Filter);
|
userInputDat.ApplyFilter(Filter);
|
||||||
@@ -291,9 +293,11 @@ namespace SabreTools.Features
|
|||||||
// Loop through each input and diff against the base
|
// Loop through each input and diff against the base
|
||||||
Parallel.ForEach(inputPaths, Globals.ParallelOptions, inputPath =>
|
Parallel.ForEach(inputPaths, Globals.ParallelOptions, inputPath =>
|
||||||
{
|
{
|
||||||
// Parse and process the path to a new DatFile
|
// Parse the path to a new DatFile
|
||||||
DatFile repDat = DatFile.Create(userInputDat.Header.CloneFiltering());
|
DatFile repDat = DatFile.Create(userInputDat.Header.CloneFiltering());
|
||||||
repDat.Parse(inputPath, indexId: 1, keep: true);
|
repDat.Parse(inputPath, indexId: 1, keep: true);
|
||||||
|
|
||||||
|
// Perform additional processing steps
|
||||||
repDat.ApplyExtras(Extras);
|
repDat.ApplyExtras(Extras);
|
||||||
repDat.ApplySplitting(GetSplitType(features), false);
|
repDat.ApplySplitting(GetSplitType(features), false);
|
||||||
repDat.ApplyFilter(Filter);
|
repDat.ApplyFilter(Filter);
|
||||||
@@ -314,9 +318,11 @@ namespace SabreTools.Features
|
|||||||
// Loop through each input and apply the base DatFile
|
// Loop through each input and apply the base DatFile
|
||||||
Parallel.ForEach(inputPaths, Globals.ParallelOptions, inputPath =>
|
Parallel.ForEach(inputPaths, Globals.ParallelOptions, inputPath =>
|
||||||
{
|
{
|
||||||
// Parse and process the path to a new DatFile
|
// Parse the path to a new DatFile
|
||||||
DatFile repDat = DatFile.Create(userInputDat.Header.CloneFiltering());
|
DatFile repDat = DatFile.Create(userInputDat.Header.CloneFiltering());
|
||||||
repDat.Parse(inputPath, indexId: 1, keep: true);
|
repDat.Parse(inputPath, indexId: 1, keep: true);
|
||||||
|
|
||||||
|
// Perform additional processing steps
|
||||||
repDat.ApplyExtras(Extras);
|
repDat.ApplyExtras(Extras);
|
||||||
repDat.ApplySplitting(GetSplitType(features), false);
|
repDat.ApplySplitting(GetSplitType(features), false);
|
||||||
repDat.ApplyFilter(Filter);
|
repDat.ApplyFilter(Filter);
|
||||||
|
|||||||
@@ -55,8 +55,11 @@ namespace SabreTools.Features
|
|||||||
{
|
{
|
||||||
foreach (ParentablePath datfile in datfilePaths)
|
foreach (ParentablePath datfile in datfilePaths)
|
||||||
{
|
{
|
||||||
|
// Parse in from the file
|
||||||
DatFile datdata = DatFile.Create();
|
DatFile datdata = DatFile.Create();
|
||||||
datdata.Parse(datfile, 99, keep: true);
|
datdata.Parse(datfile, 99, keep: true);
|
||||||
|
|
||||||
|
// Perform additional processing steps
|
||||||
datdata.ApplyExtras(Extras);
|
datdata.ApplyExtras(Extras);
|
||||||
datdata.ApplySplitting(splitType, true);
|
datdata.ApplySplitting(splitType, true);
|
||||||
datdata.ApplyFilter(Filter);
|
datdata.ApplyFilter(Filter);
|
||||||
@@ -89,12 +92,14 @@ namespace SabreTools.Features
|
|||||||
foreach (ParentablePath datfile in datfilePaths)
|
foreach (ParentablePath datfile in datfilePaths)
|
||||||
{
|
{
|
||||||
datdata.Parse(datfile, 99, keep: true);
|
datdata.Parse(datfile, 99, keep: true);
|
||||||
datdata.ApplyExtras(Extras);
|
|
||||||
datdata.ApplySplitting(splitType, true);
|
|
||||||
datdata.ApplyFilter(Filter);
|
|
||||||
datdata.ApplyCleaning(Cleaner);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Perform additional processing steps
|
||||||
|
datdata.ApplyExtras(Extras);
|
||||||
|
datdata.ApplySplitting(splitType, true);
|
||||||
|
datdata.ApplyFilter(Filter);
|
||||||
|
datdata.ApplyCleaning(Cleaner);
|
||||||
|
|
||||||
// Set depot information
|
// Set depot information
|
||||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user