mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
14 lines
311 B
C#
14 lines
311 B
C#
using System;
|
|
using Il2CppInterop.Runtime.Injection;
|
|
|
|
namespace BepInEx.IL2CPP.Hook;
|
|
|
|
public class UnhollowerDetourHandler : IManagedDetour
|
|
{
|
|
public T Detour<T>(IntPtr from, T to) where T : Delegate
|
|
{
|
|
INativeDetour.CreateAndApply(from, to, out var original);
|
|
return original;
|
|
}
|
|
}
|