mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Make sure threading is respected for populating
This commit is contained in:
@@ -2336,7 +2336,10 @@ namespace SabreTools.Helper
|
||||
MergeRoms = inputDat.MergeRoms,
|
||||
};
|
||||
|
||||
Parallel.For(0, inputs.Count, i =>
|
||||
Parallel.For(0,
|
||||
inputs.Count,
|
||||
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
|
||||
i =>
|
||||
{
|
||||
string input = inputs[i];
|
||||
logger.User("Adding DAT: " + input.Split('¬')[0]);
|
||||
|
||||
Reference in New Issue
Block a user