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

14 lines
305 B
C#

using System;
using UnhollowerRuntimeLib;
namespace BepInEx.IL2CPP.Hook;
public class UnhollowerDetourHandler : IManagedDetour
{
public T Detour<T>(IntPtr from, T to) where T : Delegate
{
NativeDetourHelper.CreateAndApply(from, to, out var original);
return original;
}
}