mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Respect the mt param
This commit is contained in:
@@ -2515,7 +2515,9 @@ namespace SabreTools.Helper
|
|||||||
// Otherwise, loop through all of the inputs individually
|
// Otherwise, loop through all of the inputs individually
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Parallel.ForEach(inputFileNames, inputFileName =>
|
Parallel.ForEach(inputFileNames,
|
||||||
|
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
|
||||||
|
inputFileName =>
|
||||||
{
|
{
|
||||||
// Clean the input string
|
// Clean the input string
|
||||||
if (inputFileName != "")
|
if (inputFileName != "")
|
||||||
@@ -2548,7 +2550,9 @@ namespace SabreTools.Helper
|
|||||||
{
|
{
|
||||||
inputFileName = Path.GetFullPath(inputFileName) + Path.DirectorySeparatorChar;
|
inputFileName = Path.GetFullPath(inputFileName) + Path.DirectorySeparatorChar;
|
||||||
|
|
||||||
Parallel.ForEach(Directory.EnumerateFiles(inputFileName, "*", SearchOption.AllDirectories), file =>
|
Parallel.ForEach(Directory.EnumerateFiles(inputFileName, "*", SearchOption.AllDirectories),
|
||||||
|
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
|
||||||
|
file =>
|
||||||
{
|
{
|
||||||
logger.User("Processing \"" + Path.GetFullPath(file).Remove(0, inputFileName.Length) + "\"");
|
logger.User("Processing \"" + Path.GetFullPath(file).Remove(0, inputFileName.Length) + "\"");
|
||||||
Dat innerDatdata = (Dat)datdata.Clone();
|
Dat innerDatdata = (Dat)datdata.Clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user