mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Some further cleanup.
This commit is contained in:
parent
70e72f5790
commit
b53a2f1def
24 changed files with 90 additions and 112 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using Dalamud.Hooking;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource.Handle;
|
||||
using OtterGui.Services;
|
||||
|
||||
namespace Penumbra.Interop.Hooks;
|
||||
|
|
@ -32,12 +31,12 @@ public sealed unsafe class DebugHook : IHookService
|
|||
public bool Finished
|
||||
=> _task?.IsCompletedSuccessfully ?? true;
|
||||
|
||||
private delegate nint Delegate(ResourceHandle* resourceHandle);
|
||||
private delegate void Delegate(nint a, int b, nint c, float* d);
|
||||
|
||||
private nint Detour(ResourceHandle* resourceHandle)
|
||||
private void Detour(nint a, int b, nint c, float* d)
|
||||
{
|
||||
Penumbra.Log.Information($"[Debug Hook] Triggered with 0x{(nint)resourceHandle:X}.");
|
||||
return _task!.Result.Original(resourceHandle);
|
||||
_task!.Result.Original(a, b, c, d);
|
||||
Penumbra.Log.Information($"[Debug Hook] Results with 0x{a:X} {b} {c:X} {d[0]} {d[1]} {d[2]} {d[3]}.");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue