From c6b9f05bbb1c9da1b55cf6dc65f4e75275690016 Mon Sep 17 00:00:00 2001 From: Zingabopp <37518403+Zingabopp@users.noreply.github.com> Date: Thu, 11 Mar 2021 10:24:28 -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 cd87d216..6cca1aa0 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;