Apply existing win32 hooks as corehook hooks

This commit is contained in:
Raymond 2021-10-13 20:33:48 -04:00
parent 306a4296bd
commit 505b32ebd2
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ namespace Dalamud.Game.Network.Internal
public WinSockHandlers()
{
this.ws2SocketHook = HookManager.DirtyLinuxUser ? null
: Hook<SocketDelegate>.FromSymbol("ws2_32.dll", "socket", this.OnSocket);
: Hook<SocketDelegate>.FromSymbol("ws2_32.dll", "socket", this.OnSocket, true);
this.ws2SocketHook?.Enable();
}

View file

@ -94,7 +94,7 @@ namespace Dalamud.Interface.Internal
}
this.setCursorHook = HookManager.DirtyLinuxUser ? null
: Hook<SetCursorDelegate>.FromSymbol("user32.dll", "SetCursor", this.SetCursorDetour);
: Hook<SetCursorDelegate>.FromSymbol("user32.dll", "SetCursor", this.SetCursorDetour, true);
this.presentHook = new Hook<PresentDelegate>(this.address.Present, this.PresentDetour);
this.resizeBuffersHook = new Hook<ResizeBuffersDelegate>(this.address.ResizeBuffers, this.ResizeBuffersDetour);