From cf9b7acb406f3f24e93043b9e889e8e60ac14a5d Mon Sep 17 00:00:00 2001 From: Eris Date: Thu, 23 Dec 2021 01:50:54 +0100 Subject: [PATCH] Fixed virtualizer issues --- Suto/Processor.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Suto/Processor.cs b/Suto/Processor.cs index 6c5d7e7..dab4e06 100644 --- a/Suto/Processor.cs +++ b/Suto/Processor.cs @@ -54,6 +54,12 @@ public void Virtualize() private void VirtualizeType(TypeDefinition type) { if (type.IsSealed) type.IsSealed = false; + + if (type.IsNestedPrivate) + { + type.IsNestedPrivate = false; + type.IsNestedPublic = true; + } if (type.IsInterface) return; if (type.IsAbstract) return; @@ -87,6 +93,7 @@ private void VirtualizeType(TypeDefinition type) } m.IsVirtual = true; + m.IsFinal = false; m.IsPublic = true; m.IsPrivate = false; m.IsNewSlot = true;