From 526c9907a3e95ec330e2592200fc1bb003d07b08 Mon Sep 17 00:00:00 2001 From: Zingabopp <37518403+Zingabopp@users.noreply.github.com> Date: Thu, 11 Mar 2021 10:19:39 -0600 Subject: [PATCH] Virtualizes methods that were already virtual but also final --- IPA.Injector/Virtualizer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPA.Injector/Virtualizer.cs b/IPA.Injector/Virtualizer.cs index 66b07fe8..3003bc40 100644 --- a/IPA.Injector/Virtualizer.cs +++ b/IPA.Injector/Virtualizer.cs @@ -103,7 +103,7 @@ namespace IPA.Injector if (method.IsManaged && method.IsIL && !method.IsStatic - && !method.IsVirtual + && (!method.IsVirtual || method.IsFinal) && !method.IsAbstract && !method.IsAddOn && !method.IsConstructor @@ -128,6 +128,7 @@ namespace IPA.Injector } method.IsVirtual = true; + method.IsFinal = false; method.IsPublic = true; method.IsPrivate = false; method.IsNewSlot = true;