fix: replace signatures

This commit is contained in:
Anna 2022-08-24 00:20:48 -04:00
parent f7dae15edb
commit 68643d64ab
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
4 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ namespace XivCommon.Functions {
/// </summary> /// </summary>
public class ChatBubbles : IDisposable { public class ChatBubbles : IDisposable {
private static class Signatures { 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"; internal const string ChatBubbleUpdate = "48 85 D2 0F 84 ?? ?? ?? ?? 48 89 5C 24 ?? 57 48 83 EC 20 8B 41 0C";
} }

View File

@ -10,7 +10,7 @@ namespace XivCommon.Functions {
/// </summary> /// </summary>
public class Examine { public class Examine {
private static class Signatures { 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); private delegate long RequestCharInfoDelegate(IntPtr ptr);

View File

@ -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); 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); private unsafe delegate void ActionUpdateTooltipDelegate(IntPtr agent, int** numberArrayData, byte*** stringArrayData);
@ -99,7 +99,7 @@ namespace XivCommon.Functions.Tooltips {
this.ItemUpdateTooltipHook?.Dispose(); 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); var ret = this.ItemUpdateTooltipHook!.Original(agent, numberArrayData, stringArrayData, a4);
if (ret > 0) { if (ret > 0) {

View File

@ -5,7 +5,7 @@ using Dalamud.Game;
namespace XivCommon.Functions { namespace XivCommon.Functions {
internal class UiAlloc { internal class UiAlloc {
private static class Signatures { 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 GameFree = "E8 ?? ?? ?? ?? 4C 89 7B 60";
internal const string GetGameAllocator = "E8 ?? ?? ?? ?? 8B 75 08"; internal const string GetGameAllocator = "E8 ?? ?? ?? ?? 8B 75 08";
} }