From 505b32ebd25685dc6f6a22dc9c8d6ad57078f3c7 Mon Sep 17 00:00:00 2001 From: Raymond Date: Wed, 13 Oct 2021 20:33:48 -0400 Subject: [PATCH] Apply existing win32 hooks as corehook hooks --- Dalamud/Game/Network/Internal/WinSockHandlers.cs | 2 +- Dalamud/Interface/Internal/InterfaceManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Network/Internal/WinSockHandlers.cs b/Dalamud/Game/Network/Internal/WinSockHandlers.cs index 68be91fb1..281291210 100644 --- a/Dalamud/Game/Network/Internal/WinSockHandlers.cs +++ b/Dalamud/Game/Network/Internal/WinSockHandlers.cs @@ -20,7 +20,7 @@ namespace Dalamud.Game.Network.Internal public WinSockHandlers() { this.ws2SocketHook = HookManager.DirtyLinuxUser ? null - : Hook.FromSymbol("ws2_32.dll", "socket", this.OnSocket); + : Hook.FromSymbol("ws2_32.dll", "socket", this.OnSocket, true); this.ws2SocketHook?.Enable(); } diff --git a/Dalamud/Interface/Internal/InterfaceManager.cs b/Dalamud/Interface/Internal/InterfaceManager.cs index 5a188c963..8487f4fce 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.cs @@ -94,7 +94,7 @@ namespace Dalamud.Interface.Internal } this.setCursorHook = HookManager.DirtyLinuxUser ? null - : Hook.FromSymbol("user32.dll", "SetCursor", this.SetCursorDetour); + : Hook.FromSymbol("user32.dll", "SetCursor", this.SetCursorDetour, true); this.presentHook = new Hook(this.address.Present, this.PresentDetour); this.resizeBuffersHook = new Hook(this.address.ResizeBuffers, this.ResizeBuffersDetour);