mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add new parameter to LoadWeapon hook.
This commit is contained in:
parent
7af81a6c18
commit
9f8185f67b
1 changed files with 4 additions and 4 deletions
|
|
@ -35,14 +35,14 @@ public sealed unsafe class WeaponReload : EventWrapperPtr<DrawDataContainer, Cha
|
||||||
public bool Finished
|
public bool Finished
|
||||||
=> _task.IsCompletedSuccessfully;
|
=> _task.IsCompletedSuccessfully;
|
||||||
|
|
||||||
private delegate void Delegate(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g);
|
private delegate void Delegate(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g, byte h);
|
||||||
|
|
||||||
private void Detour(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g)
|
private void Detour(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g, byte h)
|
||||||
{
|
{
|
||||||
var gameObject = drawData->OwnerObject;
|
var gameObject = drawData->OwnerObject;
|
||||||
Penumbra.Log.Verbose($"[{Name}] Triggered with drawData: 0x{(nint)drawData:X}, {slot}, {weapon}, {d}, {e}, {f}, {g}.");
|
Penumbra.Log.Verbose($"[{Name}] Triggered with drawData: 0x{(nint)drawData:X}, {slot}, {weapon}, {d}, {e}, {f}, {g}, {h}.");
|
||||||
Invoke(drawData, gameObject, (CharacterWeapon*)(&weapon));
|
Invoke(drawData, gameObject, (CharacterWeapon*)(&weapon));
|
||||||
_task.Result.Original(drawData, slot, weapon, d, e, f, g);
|
_task.Result.Original(drawData, slot, weapon, d, e, f, g, h);
|
||||||
_postEvent.Invoke(drawData, gameObject);
|
_postEvent.Invoke(drawData, gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue