mirror of
https://github.com/BepInEx/Il2CppInterop.git
synced 2026-11-23 03:39:35 -10:00
Add minimal ref ValueType type conversion into HarmonySupport
This commit is contained in:
1 parent
f03c8f4ae5
commit
97aa893287
1 file changed
+5
-1
@@ -459,8 +459,12 @@ internal unsafe class Il2CppDetourMethodPatcher : MethodPatcher
|
||||
|
||||
if (managedParamType.IsByRef)
|
||||
{
|
||||
// TODO: directType being ValueType is not handled yet (but it's not that common in games). Implement when needed.
|
||||
var directType = managedParamType.GetElementType();
|
||||
// blittable value type pointer, note that ref to boxed Il2CppSystem.ValueType wrapper is still not handled
|
||||
if (directType.IsValueType)
|
||||
return;
|
||||
|
||||
// TODO: directType being Il2CppSystem.ValueType is not handled yet (but it's not that common in games). Implement when needed.
|
||||
|
||||
variable = il.DeclareLocal(directType);
|
||||
|
||||
|
||||
Reference in new issue
Block a user