Use CS in sig.

This commit is contained in:
Ottermandias 2023-07-20 00:57:11 +02:00
parent 2de9268994
commit 0dc0a534cf

View file

@ -20,6 +20,8 @@ public unsafe class UpdateSlotService : IDisposable
EquipmentLoadingEvent = equipmentLoadingEvent;
SignatureHelper.Initialise(this);
_flagSlotForUpdateHook.Enable();
_loadEquipmentHook =
Hook<LoadEquipmentDelegateIntern>.FromAddress((nint) DrawDataContainer.MemberFunctionPointers.LoadEquipment, LoadEquipmentDetour);
_loadEquipmentHook.Enable();
}
@ -53,8 +55,6 @@ public unsafe class UpdateSlotService : IDisposable
private delegate void LoadEquipmentDelegateIntern(DrawDataContainer* drawDataContainer, uint slotIdx, CharacterArmor data, bool force);
// TODO: use client structs.
[Signature("E8 ?? ?? ?? ?? 41 B5 ?? FF C6", DetourName = nameof(LoadEquipmentDetour))]
private readonly Hook<LoadEquipmentDelegateIntern> _loadEquipmentHook = null!;
private ulong FlagSlotForUpdateDetour(nint drawObject, uint slotIdx, CharacterArmor* data)