Skip to content

Commit

Permalink
Fixed virtualizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisApps committed Dec 23, 2021
1 parent 418b6d0 commit cf9b7ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Suto/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -87,6 +93,7 @@ private void VirtualizeType(TypeDefinition type)
}

m.IsVirtual = true;
m.IsFinal = false;
m.IsPublic = true;
m.IsPrivate = false;
m.IsNewSlot = true;
Expand Down

0 comments on commit cf9b7ac

Please sign in to comment.