feat: AsmHook

This commit is contained in:
Raymond 2021-08-30 16:33:57 -04:00
parent 3fd1637cf0
commit 369d7af8a0
4 changed files with 278 additions and 75 deletions

View file

@ -0,0 +1,24 @@
namespace Dalamud.Hooking
{
/// <summary>
/// Defines the behaviour used by the Dalamud.Hooking.AsmHook.
/// This is equivalent to the same enumeration in Reloaded and is included so you do not have to reference the assembly.
/// </summary>
public enum AsmHookBehaviour
{
/// <summary>
/// Executes your assembly code before the original.
/// </summary>
ExecuteFirst = 0,
/// <summary>
/// Executes your assembly code after the original.
/// </summary>
ExecuteAfter = 1,
/// <summary>
/// Do not execute original replaced code (Dangerous!).
/// </summary>
DoNotExecuteOriginal = 2,
}
}