Fixes for rare texture loading issues

And an attempt to try prevent rare reported issues with prepatch loading
This commit is contained in:
bbradson
2023-06-13 19:43:02 +02:00
parent 76c0f7a371
commit 3d8c8e4d29
5 changed files with 11 additions and 7 deletions
@@ -100,8 +100,11 @@ public static class PrepatchManager
{
var types = module.Types;
Parallel.For(0, types.Count, // about 20% faster than sequential for in testing
i => ModifyAllMethodsIn(types[i]));
// Parallel.For(0, types.Count, // about 20% faster than sequential for in testing
// i => ModifyAllMethodsIn(types[i]));
for (var i = 0; i < types.Count; i++)
ModifyAllMethodsIn(types[i]);
}
private static void ModifyAllMethodsIn(TypeDefinition type)