mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Use CS in sig.
This commit is contained in:
parent
2de9268994
commit
0dc0a534cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue