mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Use ClientStructs hook for CalculateHeight.
This commit is contained in:
parent
95746e7450
commit
3d2ce1f4bb
1 changed files with 2 additions and 2 deletions
|
|
@ -70,6 +70,8 @@ public unsafe class MetaState : IDisposable
|
|||
_characterUtility = characterUtility;
|
||||
_config = config;
|
||||
interop.InitializeFromAttributes(this);
|
||||
_calculateHeightHook =
|
||||
interop.HookFromAddress<CalculateHeightDelegate>((nint)Character.MemberFunctionPointers.CalculateHeight, CalculateHeightDetour);
|
||||
_onModelLoadCompleteHook = interop.HookFromAddress<OnModelLoadCompleteDelegate>(_humanVTable[58], OnModelLoadCompleteDetour);
|
||||
_getEqpIndirectHook.Enable();
|
||||
_updateModelsHook.Enable();
|
||||
|
|
@ -249,8 +251,6 @@ public unsafe class MetaState : IDisposable
|
|||
|
||||
private delegate ulong CalculateHeightDelegate(Character* character);
|
||||
|
||||
// TODO: use client structs
|
||||
[Signature(Sigs.CalculateHeight, DetourName = nameof(CalculateHeightDetour))]
|
||||
private readonly Hook<CalculateHeightDelegate> _calculateHeightHook = null!;
|
||||
|
||||
private ulong CalculateHeightDetour(Character* character)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue