mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Merge pull request #376 from Kasuromi/master
[Il2Cpp] Convert managed bool to byte in Native to Managed trampoline
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user