Skip to content

Commit

Permalink
Fix some dumb mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
KazWolfe authored Feb 7, 2024
1 parent dae7d88 commit ea8f9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/plugin-development/interaction/expanding-game-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class MyHook : IDisposable {
private readonly Hook<SetSavePendingDelegate>? _macroUpdateHook;

public MyHook() {
this._macroUpdateHook = Services.GameInteropProvider.HookFromAddress<MacroUpdate>(
this._macroUpdateHook = Services.GameInteropProvider.HookFromAddress<SetSavePendingDelegate>(
(nint) RaptureMacroModule.Addresses.SetSavePendingFlag.Value,
this.DetourSetSavePending
);
Expand Down Expand Up @@ -126,7 +126,7 @@ public class MySiggedHook : IDisposable {
[Signature("45 85 C0 75 04 88 51 3D", DetourName = nameof(DetourSetSavePending))]
private Hook<SetSavePendingDelegate>? _macroUpdateHook;

public MyHook() {
public MySiggedHook() {
Services.GameInteropProvider.InitializeFromAttributes(this);

this._macroUpdateHook?.Enable();
Expand Down

0 comments on commit ea8f9b8

Please sign in to comment.