namespace Dalamud.Game.Gui.Toast; /// /// An address resolver for the class. /// internal class ToastGuiAddressResolver : BaseAddressResolver { /// /// Gets the address of the native ShowNormalToast method. /// public IntPtr ShowNormalToast { get; private set; } /// /// Gets the address of the native ShowQuestToast method. /// public IntPtr ShowQuestToast { get; private set; } /// /// Gets the address of the ShowErrorToast method. /// public IntPtr ShowErrorToast { get; private set; } /// protected override void Setup64Bit(SigScanner sig) { this.ShowNormalToast = sig.ScanText("48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 30 83 3D ?? ?? ?? ?? ??"); this.ShowQuestToast = sig.ScanText("48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 48 89 7C 24 ?? 41 56 48 83 EC 40 83 3D ?? ?? ?? ?? ??"); this.ShowErrorToast = sig.ScanText("48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 83 3D ?? ?? ?? ?? ?? 41 0F B6 F0"); } }