Merge pull request #376 from Kasuromi/master

[Il2Cpp] Convert managed bool to byte in Native to Managed trampoline
This commit is contained in:
Geoffrey Horsington authored and GitHub committed 2022-03-15 17:43:51 +02:00
commit b50a18a3d9
1 file changed
+3
@@ -333,6 +333,9 @@ public unsafe class IL2CPPDetourMethodPatcher : MethodPatcher
) // General reference type
{
return typeof(IntPtr);
} else if(managedType == typeof(bool)) {
// bool is byte in Il2Cpp, but int in CLR => force size to be correct
return typeof(byte);
}
return managedType;