From a007b128fb07d3132f2c5d94c034c5e13d8cd25d Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 7 Jan 2021 23:11:10 +0100 Subject: [PATCH] Model: Add MethodImplementationFlags --- Il2CppInspector.Common/Reflection/MethodBase.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Il2CppInspector.Common/Reflection/MethodBase.cs b/Il2CppInspector.Common/Reflection/MethodBase.cs index 09e3ec6..4614c29 100644 --- a/Il2CppInspector.Common/Reflection/MethodBase.cs +++ b/Il2CppInspector.Common/Reflection/MethodBase.cs @@ -32,6 +32,8 @@ namespace Il2CppInspector.Reflection // Information/flags about the method public MethodAttributes Attributes { get; protected set; } + public MethodImplAttributes MethodImplementationFlags { get; protected set; } + // Custom attributes for this member public override IEnumerable CustomAttributes => CustomAttributeData.GetCustomAttributes(rootDefinition); @@ -140,6 +142,7 @@ namespace Il2CppInspector.Reflection // Copy attributes Attributes = (MethodAttributes) Definition.flags; + MethodImplementationFlags = (MethodImplAttributes) Definition.iflags; // Add arguments for (var p = Definition.parameterStart; p < Definition.parameterStart + Definition.parameterCount; p++) @@ -153,6 +156,7 @@ namespace Il2CppInspector.Reflection rootDefinition = methodDef; Name = methodDef.Name; Attributes = methodDef.Attributes; + MethodImplementationFlags = methodDef.MethodImplementationFlags; VirtualAddress = methodDef.VirtualAddress; IsGenericMethod = methodDef.IsGenericMethod; @@ -175,6 +179,7 @@ namespace Il2CppInspector.Reflection genericMethodDefinition = methodDef; Name = methodDef.Name; Attributes = methodDef.Attributes; + MethodImplementationFlags = methodDef.MethodImplementationFlags; VirtualAddress = methodDef.VirtualAddress; IsGenericMethod = true;