From 7752b0f91825ed134689a179f2c180a294357399 Mon Sep 17 00:00:00 2001 From: wolfcomp <4028289+wolfcomp@users.noreply.github.com> Date: Wed, 28 Jan 2026 15:49:11 +0100 Subject: [PATCH] Add SendPacket delegate to HookVerifier --- Dalamud/Hooking/Internal/Verification/HookVerifier.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dalamud/Hooking/Internal/Verification/HookVerifier.cs b/Dalamud/Hooking/Internal/Verification/HookVerifier.cs index 349d8f170..e02fd9db6 100644 --- a/Dalamud/Hooking/Internal/Verification/HookVerifier.cs +++ b/Dalamud/Hooking/Internal/Verification/HookVerifier.cs @@ -6,6 +6,8 @@ using System.Runtime.InteropServices; using Dalamud.Game; using Dalamud.Logging.Internal; +using FFXIVClientStructs.FFXIV.Application.Network; + using InteropGenerator.Runtime; namespace Dalamud.Hooking.Internal.Verification; @@ -25,7 +27,12 @@ internal static class HookVerifier "ActorControlSelf", "E8 ?? ?? ?? ?? 0F B7 0B 83 E9 64", typeof(ActorControlSelfDelegate), // TODO: change this to CS delegate - "Signature changed in Patch 7.4") // 7.4 (new parameters) + "Signature changed in Patch 7.4"), // 7.4 (new parameters) + new( + "SendPacket", + ZoneClient.Addresses.SendPacket.String, + typeof(ZoneClient.Delegates.SendPacket), + "Force marshaling context") // If people hook with 4 byte return this locks people out from logging in ]; private static readonly string ClientStructsInteropNamespacePrefix = string.Join(".", nameof(FFXIVClientStructs), nameof(FFXIVClientStructs.Interop));