Use CS sig.

This commit is contained in:
Ottermandias 2025-03-28 13:52:15 +01:00
parent 22babad789
commit 00cb1b6643
2 changed files with 4 additions and 3 deletions

View file

@ -27,6 +27,9 @@ public unsafe class ScalingService : IDisposable
interop.HookFromAddress<SetupMount>((nint)MountContainer.MemberFunctionPointers.SetupMount, SetupMountDetour);
_calculateHeightHook =
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();
_updateOrnamentHook.Enable();
@ -55,8 +58,6 @@ public unsafe class ScalingService : IDisposable
private readonly Hook<CalculateHeight> _calculateHeightHook;
// TODO: Use client structs sig.
[Signature(Sigs.PlaceMinion, DetourName = nameof(PlaceMinionDetour))]
private readonly Hook<PlaceMinion> _placeMinionHook = null!;
private void SetupMountDetour(MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4)

@ -1 +1 @@
Subproject commit 9ae4a97110fff005a54213815086ce950d4d8b2d
Subproject commit 8ec54ed4b114e2ffb1d46596785fd5ec382d7ebd