mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 22:07:44 +01:00
feat: AsmHook
This commit is contained in:
parent
3fd1637cf0
commit
369d7af8a0
4 changed files with 278 additions and 75 deletions
24
Dalamud/Hooking/AsmHookBehaviour.cs
Normal file
24
Dalamud/Hooking/AsmHookBehaviour.cs
Normal 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,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue