Files
BepInEx/BepInEx.IL2CPP/Hook/UnhollowerDetourHandler.cs
T
2022-08-14 17:18:58 +03:00

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;
}
}