Namespace SkyrimForge.Hooks
Classes
- AddressLibrary
Resolves address library identifiers on the running game.
- BytePatch
Replaces bytes within the expected bytes, such as the constant of one instruction.
- BytePattern
A byte sequence in which some positions match any byte, written as hexadecimal pairs separated by spaces, such as "48 8D 0D ?? ?? ?? ??".
- CallPatch
Replaces whole instructions with a call to Target, after which the code following the expected bytes runs.
- CodePatch
A patch ICodePatcher applies to code once the bytes at its address match the expected ones.
- GameMemory
Reads and writes memory at an address, and converts between addresses and views.
- GameModule
The running game's executable, as loaded in this process.
- InsertionPatch
Inserts machine code at an address. The expected bytes become a jump to allocated memory, which runs the code and the displaced instructions, then jumps back.
- InstructionHook
Runs a handler on each thread that reaches the instruction at Address, before that instruction runs.
Structs
- CpuContext
The registers of a thread that reached an InstructionHook, as they are before the hooked instruction runs.
- GameFunction
A game function, by its Address Library ID on each runtime. An ID the address library lacks resolves to no address.
- GameOffset
The offset of an instruction from a function's entry, in bytes, on each runtime.
- GameVariable
A game variable, by its Address Library ID on each runtime.
- Xmm
One 128-bit SSE register, as an InstructionHandler reads and changes it through CpuContext.
Interfaces
- ICodePatcher
Changes the machine code of the game, or of a native SKSE plugin, if it matches the bytes each patch expects.
- IFunctionHooks
Hooks a game function at a virtual method table entry, a call instruction, or the function's entry.
Enums
- DisplacedPlacement
The order of an InsertionPatch's code and the instructions it displaces.
Delegates
- InstructionHandler
Runs on a thread that reaches an InstructionHook, before the hooked instruction, and may change the registers in
context.