Stop reordering nested types, which dnlib refuses to re-add
parent
f574f73f92
commit
5680d7ef39
|
|
@ -48,7 +48,6 @@ namespace Obfuz.ObfusPasses.SymbolObfus
|
||||||
Reorder(mod.Types, t => t.IsGlobalModuleType || IsPositionPinnedType(t));
|
Reorder(mod.Types, t => t.IsGlobalModuleType || IsPositionPinnedType(t));
|
||||||
foreach (TypeDef type in mod.GetTypes().ToList())
|
foreach (TypeDef type in mod.GetTypes().ToList())
|
||||||
{
|
{
|
||||||
Reorder(type.NestedTypes, IsPositionPinnedType);
|
|
||||||
if (MayReorderFields(type))
|
if (MayReorderFields(type))
|
||||||
{
|
{
|
||||||
Reorder(type.Fields, f => !_renamePolicy.NeedRename(f));
|
Reorder(type.Fields, f => !_renamePolicy.NeedRename(f));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue