Class PatchUtils
A class containing helper methods for harmony patches
Inheritance
System.Object
PatchUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LLBML.Utils
Assembly: LLBModdingLib.dll
Syntax
public static class PatchUtils
Methods
LogInstruction(CodeInstruction)
Logs a single instruction.
Declaration
public static void LogInstruction(CodeInstruction ci)
Parameters
| Type | Name | Description |
|---|---|---|
| HarmonyLib.CodeInstruction | ci |
LogInstructions(IEnumerable<CodeInstruction>, Int32, Int32, ManualLogSource)
Logs all the instructions to either the provided log, or LLBML's one.
Declaration
public static void LogInstructions(IEnumerable<CodeInstruction> instructions, int from = 0, int to = -1, ManualLogSource logSource = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<HarmonyLib.CodeInstruction> | instructions | The instructions to log. |
| System.Int32 | from | The start index from which to start logging. |
| System.Int32 | to | The end index where to stop logging. |
| BepInEx.Logging.ManualLogSource | logSource | The log source to use. |