From 1224a928035ab7508cb261e55505bf04bc08004e Mon Sep 17 00:00:00 2001 From: js6pak Date: Fri, 30 Sep 2022 18:59:35 +0200 Subject: [PATCH] Fixup a merge mistake --- Il2CppInterop.HarmonySupport/Il2CppDetourMethodPatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInterop.HarmonySupport/Il2CppDetourMethodPatcher.cs b/Il2CppInterop.HarmonySupport/Il2CppDetourMethodPatcher.cs index 0c6a144d..1478f505 100644 --- a/Il2CppInterop.HarmonySupport/Il2CppDetourMethodPatcher.cs +++ b/Il2CppInterop.HarmonySupport/Il2CppDetourMethodPatcher.cs @@ -230,12 +230,12 @@ private DynamicMethodDefinition GenerateNativeToManagedTrampoline(MethodInfo tar // TODO: Handle ARM // TODO: Check if this applies to values other than structs { + unmanagedReturnType = typeof(IntPtr); paramStartIndex++; } if (!Original.IsStatic) { - unmanagedReturnType = typeof(IntPtr); paramStartIndex++; }