Skip to content

Commit 9f8185f

Browse files
committed
Add new parameter to LoadWeapon hook.
1 parent 7af81a6 commit 9f8185f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Penumbra/Interop/Hooks/Objects/WeaponReload.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public Task Awaiter
3535
public bool Finished
3636
=> _task.IsCompletedSuccessfully;
3737

38-
private delegate void Delegate(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g);
38+
private delegate void Delegate(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g, byte h);
3939

40-
private void Detour(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g)
40+
private void Detour(DrawDataContainer* drawData, uint slot, ulong weapon, byte d, byte e, byte f, byte g, byte h)
4141
{
4242
var gameObject = drawData->OwnerObject;
43-
Penumbra.Log.Verbose($"[{Name}] Triggered with drawData: 0x{(nint)drawData:X}, {slot}, {weapon}, {d}, {e}, {f}, {g}.");
43+
Penumbra.Log.Verbose($"[{Name}] Triggered with drawData: 0x{(nint)drawData:X}, {slot}, {weapon}, {d}, {e}, {f}, {g}, {h}.");
4444
Invoke(drawData, gameObject, (CharacterWeapon*)(&weapon));
45-
_task.Result.Original(drawData, slot, weapon, d, e, f, g);
45+
_task.Result.Original(drawData, slot, weapon, d, e, f, g, h);
4646
_postEvent.Invoke(drawData, gameObject);
4747
}
4848

0 commit comments

Comments
 (0)