From 68643d64ab30b4a34f8ed1012deaf01865f24a7e Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 24 Aug 2022 00:20:48 -0400 Subject: [PATCH] fix: replace signatures --- XivCommon/Functions/ChatBubbles.cs | 2 +- XivCommon/Functions/Examine.cs | 2 +- XivCommon/Functions/Tooltips/Tooltips.cs | 4 ++-- XivCommon/Functions/UiAlloc.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/XivCommon/Functions/ChatBubbles.cs b/XivCommon/Functions/ChatBubbles.cs index f8c2f57..8520544 100755 --- a/XivCommon/Functions/ChatBubbles.cs +++ b/XivCommon/Functions/ChatBubbles.cs @@ -12,7 +12,7 @@ namespace XivCommon.Functions { /// public class ChatBubbles : IDisposable { private static class Signatures { - internal const string ChatBubbleOpen = "E8 ?? ?? ?? ?? 80 BF ?? ?? ?? ?? ?? C7 07 ?? ?? ?? ??"; + internal const string ChatBubbleOpen = "E8 ?? ?? ?? ?? C7 43 ?? ?? ?? ?? ?? 48 8B 0D ?? ?? ?? ?? E8"; internal const string ChatBubbleUpdate = "48 85 D2 0F 84 ?? ?? ?? ?? 48 89 5C 24 ?? 57 48 83 EC 20 8B 41 0C"; } diff --git a/XivCommon/Functions/Examine.cs b/XivCommon/Functions/Examine.cs index 31b9e30..ab02578 100755 --- a/XivCommon/Functions/Examine.cs +++ b/XivCommon/Functions/Examine.cs @@ -10,7 +10,7 @@ namespace XivCommon.Functions { /// public class Examine { private static class Signatures { - internal const string RequestCharacterInfo = "48 89 5C 24 ?? 57 48 83 EC 40 BA ?? ?? ?? ?? 48 8B D9 E8 ?? ?? ?? ?? 48 8B F8 48 85 C0 74 16"; + internal const string RequestCharacterInfo = "40 53 48 83 EC 40 48 8B D9 48 8B 49 10 48 8B 01 FF 90 ?? ?? ?? ?? BA"; } private delegate long RequestCharInfoDelegate(IntPtr ptr); diff --git a/XivCommon/Functions/Tooltips/Tooltips.cs b/XivCommon/Functions/Tooltips/Tooltips.cs index 5d17b5a..5cd08d7 100755 --- a/XivCommon/Functions/Tooltips/Tooltips.cs +++ b/XivCommon/Functions/Tooltips/Tooltips.cs @@ -21,7 +21,7 @@ namespace XivCommon.Functions.Tooltips { internal unsafe delegate void StringArrayDataSetStringDelegate(IntPtr self, int index, byte* str, byte updatePtr, byte copyToUi, byte dontSetModified); - private unsafe delegate byte ItemUpdateTooltipDelegate(IntPtr agent, int** numberArrayData, byte*** stringArrayData, float a4); + private unsafe delegate ulong ItemUpdateTooltipDelegate(IntPtr agent, int** numberArrayData, byte*** stringArrayData, float a4); private unsafe delegate void ActionUpdateTooltipDelegate(IntPtr agent, int** numberArrayData, byte*** stringArrayData); @@ -99,7 +99,7 @@ namespace XivCommon.Functions.Tooltips { this.ItemUpdateTooltipHook?.Dispose(); } - private unsafe byte ItemUpdateTooltipDetour(IntPtr agent, int** numberArrayData, byte*** stringArrayData, float a4) { + private unsafe ulong ItemUpdateTooltipDetour(IntPtr agent, int** numberArrayData, byte*** stringArrayData, float a4) { var ret = this.ItemUpdateTooltipHook!.Original(agent, numberArrayData, stringArrayData, a4); if (ret > 0) { diff --git a/XivCommon/Functions/UiAlloc.cs b/XivCommon/Functions/UiAlloc.cs index e338a90..cab2ef2 100755 --- a/XivCommon/Functions/UiAlloc.cs +++ b/XivCommon/Functions/UiAlloc.cs @@ -5,7 +5,7 @@ using Dalamud.Game; namespace XivCommon.Functions { internal class UiAlloc { private static class Signatures { - internal const string GameAlloc = "E8 ?? ?? ?? ?? 49 83 CF FF 4C 8B F0"; + internal const string GameAlloc = "E8 ?? ?? ?? ?? 49 83 CC FF 4C 8B F0"; internal const string GameFree = "E8 ?? ?? ?? ?? 4C 89 7B 60"; internal const string GetGameAllocator = "E8 ?? ?? ?? ?? 8B 75 08"; }