mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Remove unnecessary sort
This commit is contained in:
@@ -492,9 +492,6 @@ 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 =>
|
||||||
@@ -544,6 +541,7 @@ namespace SabreTools.Helper.Dats
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.Error("I'm sorry but " + inputFileName + " doesn't exist!");
|
logger.Error("I'm sorry but " + inputFileName + " doesn't exist!");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user