mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-10 18:14:36 +01:00
22 lines
804 B
C#
22 lines
804 B
C#
using Dalamud.Plugin.Services;
|
|
|
|
namespace Dalamud.Game.Gui.NamePlate;
|
|
|
|
/// <summary>
|
|
/// An address resolver for the <see cref="NamePlateGui"/> class.
|
|
/// </summary>
|
|
internal class NamePlateGuiAddressResolver : BaseAddressResolver
|
|
{
|
|
/// <summary>
|
|
/// Gets the address of the AddonNamePlate OnRequestedUpdate method. We need to use a hook for this because
|
|
/// AddonNamePlate.Show calls OnRequestedUpdate directly, bypassing the AddonLifecycle callsite hook.
|
|
/// </summary>
|
|
public IntPtr OnRequestedUpdate { get; private set; }
|
|
|
|
/// <inheritdoc/>
|
|
protected override void Setup64Bit(ISigScanner sig)
|
|
{
|
|
this.OnRequestedUpdate = sig.ScanText(
|
|
"4C 8B DC 41 56 48 81 EC ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 84 24 ?? ?? ?? ?? 49 8B 40 20");
|
|
}
|
|
}
|