Files
BepInEx/BepInEx.IL2CPP/Hook/UnhollowerDetourHandler.cs
T

14 lines
314 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
{
FastNativeDetour.CreateAndApply(from, to, out var original);
return original;
}
}