Class IL2CPPDetourMethodPatcher
Namespace: BepInEx.IL2CPP.Hook
Assembly: BepInEx.IL2CPP.dll
Syntax
public class IL2CPPDetourMethodPatcher : MethodPatcher
Constructors
Constructs a new instance of
Declaration
public IL2CPPDetourMethodPatcher(MethodBase original)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase |
original |
Methods
Declaration
public override DynamicMethodDefinition CopyOriginal()
Returns
Type | Description |
---|---|
DynamicMethodDefinition |
Declaration
public override MethodBase DetourTo(MethodBase replacement)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase |
replacement |
Returns
Type | Description |
---|---|
System.Reflection.MethodBase |
Declaration
public override DynamicMethodDefinition PrepareOriginal()
Returns
Type | Description |
---|---|
DynamicMethodDefinition |
A handler for
Declaration
public static void TryResolve(object sender, PatchManager.PatcherResolverEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object |
sender |
Not used |
PatchManager.PatcherResolverEventArgs |
args |
Patch resolver arguments |