mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Merge pull request #401 from Kasuromi/master
[Il2Cpp] Use UnityVersionHandler's Size Providers in Harmony Backend
This commit is contained in:
1 file changed
+2
-2
@@ -104,8 +104,8 @@ public unsafe class IL2CPPDetourMethodPatcher : MethodPatcher
|
||||
// Create a modified native MethodInfo struct to point towards the trampoline
|
||||
modifiedNativeMethodInfo = UnityVersionHandler.NewMethod();
|
||||
Buffer.MemoryCopy(originalNativeMethodInfo.Pointer.ToPointer(),
|
||||
modifiedNativeMethodInfo.Pointer.ToPointer(), modifiedNativeMethodInfo.StructSize,
|
||||
originalNativeMethodInfo.StructSize);
|
||||
modifiedNativeMethodInfo.Pointer.ToPointer(), UnityVersionHandler.MethodSize(),
|
||||
UnityVersionHandler.MethodSize());
|
||||
modifiedNativeMethodInfo.MethodPointer = trampolinePtr;
|
||||
isValid = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user