mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Use CS sig.
This commit is contained in:
parent
22babad789
commit
00cb1b6643
2 changed files with 4 additions and 3 deletions
|
|
@ -27,6 +27,9 @@ public unsafe class ScalingService : IDisposable
|
||||||
interop.HookFromAddress<SetupMount>((nint)MountContainer.MemberFunctionPointers.SetupMount, SetupMountDetour);
|
interop.HookFromAddress<SetupMount>((nint)MountContainer.MemberFunctionPointers.SetupMount, SetupMountDetour);
|
||||||
_calculateHeightHook =
|
_calculateHeightHook =
|
||||||
interop.HookFromAddress<CalculateHeight>((nint)ModelContainer.MemberFunctionPointers.CalculateHeight, CalculateHeightDetour);
|
interop.HookFromAddress<CalculateHeight>((nint)ModelContainer.MemberFunctionPointers.CalculateHeight, CalculateHeightDetour);
|
||||||
|
_placeMinionHook = interop.HookFromAddress<PlaceMinion>((nint)Companion.MemberFunctionPointers.PlaceCompanion, PlaceMinionDetour);
|
||||||
|
//_updateOrnamentHook =
|
||||||
|
// interop.HookFromAddress<UpdateOrnament>((nint)Ornament.MemberFunctionPointers.UpdateOrnament, UpdateOrnamentDetour);
|
||||||
|
|
||||||
_setupMountHook.Enable();
|
_setupMountHook.Enable();
|
||||||
_updateOrnamentHook.Enable();
|
_updateOrnamentHook.Enable();
|
||||||
|
|
@ -55,8 +58,6 @@ public unsafe class ScalingService : IDisposable
|
||||||
|
|
||||||
private readonly Hook<CalculateHeight> _calculateHeightHook;
|
private readonly Hook<CalculateHeight> _calculateHeightHook;
|
||||||
|
|
||||||
// TODO: Use client structs sig.
|
|
||||||
[Signature(Sigs.PlaceMinion, DetourName = nameof(PlaceMinionDetour))]
|
|
||||||
private readonly Hook<PlaceMinion> _placeMinionHook = null!;
|
private readonly Hook<PlaceMinion> _placeMinionHook = null!;
|
||||||
|
|
||||||
private void SetupMountDetour(MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4)
|
private void SetupMountDetour(MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9ae4a97110fff005a54213815086ce950d4d8b2d
|
Subproject commit 8ec54ed4b114e2ffb1d46596785fd5ec382d7ebd
|
||||||
Loading…
Add table
Add a link
Reference in a new issue