mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Sort individual files as well
This commit is contained in:
@@ -1299,6 +1299,9 @@ namespace SabreTools.Helper.Dats
|
|||||||
public void Update(List<string> inputFileNames, string outDir, bool clean, bool softlist, Filter filter,
|
public void Update(List<string> inputFileNames, string outDir, bool clean, bool softlist, Filter filter,
|
||||||
bool trim, bool single, string root, int maxDegreeOfParallelism, Logger logger)
|
bool trim, bool single, string root, int maxDegreeOfParallelism, Logger logger)
|
||||||
{
|
{
|
||||||
|
// Sort the input filenames
|
||||||
|
inputFileNames.Sort(new NaturalComparer());
|
||||||
|
|
||||||
Parallel.ForEach(inputFileNames,
|
Parallel.ForEach(inputFileNames,
|
||||||
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
|
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
|
||||||
inputFileName =>
|
inputFileName =>
|
||||||
|
|||||||
Reference in New Issue
Block a user