From 894075d67631c4ee9516348dabdedd9ade654182 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 10 Jan 2021 02:20:58 +0100 Subject: [PATCH] DLL: Don't output method body for abstract methods --- Il2CppInspector.Common/Outputs/AssemblyShims.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector.Common/Outputs/AssemblyShims.cs b/Il2CppInspector.Common/Outputs/AssemblyShims.cs index 74a0e69..f7455de 100644 --- a/Il2CppInspector.Common/Outputs/AssemblyShims.cs +++ b/Il2CppInspector.Common/Outputs/AssemblyShims.cs @@ -333,9 +333,10 @@ namespace Il2CppInspector.Outputs mMethod.ParamDefs.Add(p); } - // Everything that's not extern or a delegate type should have a method body + // Everything that's not extern, abstract or a delegate type should have a method body if ((method.Attributes & System.Reflection.MethodAttributes.PinvokeImpl) == 0 - && method.DeclaringType.BaseType?.FullName != "System.MulticastDelegate") { + && method.DeclaringType.BaseType?.FullName != "System.MulticastDelegate" + && !method.IsAbstract) { mMethod.Body = new CilBody(); var inst = mMethod.Body.Instructions;