Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Action/DevModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using DailyRoutines.Abstracts;
using FFXIVClientStructs.FFXIV.Client.System.Framework;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using FFXIVClientStructs.FFXIV.Client.UI.Info;
using KamiToolKit.Nodes;

public unsafe class DevModule : DailyModuleBase
{
private delegate void LeaveNoviceNetworkDelegate(InfoProxyDetail* detail);
private static readonly LeaveNoviceNetworkDelegate LeaveNoviceNetwork =
new CompSig("48 89 5C 24 ?? 57 48 83 EC ?? 4C 8B 49 ?? 48 8B D9 49 0F BA E1").GetDelegate<LeaveNoviceNetworkDelegate>();

protected override void ConfigUI()
{
var agentPtr = (nint)AgentDetail.Instance();
ImGui.Text($"{*(byte*)(agentPtr + 64)}");

if (ImGui.Button("测试离开"))
{
LeaveNoviceNetwork(InfoProxyDetail.Instance());
}
}
}
Loading