This commit is contained in:
HolographicHat
2025-10-23 09:18:04 +08:00
parent ccff7a1702
commit 6a2115b4de
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ internal static unsafe class Application {
//
RecordChecksum();
MinHook.Attach(DoCmd, &OnDoCmd, out _doCmd);
MinHook.Attach(ToUInt32, &OnToInt32, out _toInt32);
MinHook.Attach(ToInt32, &OnToInt32, out _toInt32);
MinHook.Attach(UpdateNormalProp, &OnUpdateNormalProp, out _updateNormalProp);
MinHook.Attach(EventSystemUpdate, &OnEventSystemUpdate, out _eventSystemUpdate);
return 0;

View File

@@ -25,7 +25,7 @@ internal static unsafe class GameMethod {
public static delegate*unmanaged<nint, nint, bool> SimulatePointerClick { get; set; }
public static delegate*unmanaged<byte*, int, int> ToUInt32 { get; set; }
public static delegate*unmanaged<byte*, int, int> ToInt32 { get; set; }
public static void** TcpStatePtr { get; set; }
@@ -94,7 +94,7 @@ internal static class Goshujin {
GameMethod.FindGameObject = (delegate*unmanaged<nint, nint>) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.EventSystemUpdate = (delegate*unmanaged<nint, void>) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.SimulatePointerClick = (delegate*unmanaged<nint, nint, bool>) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.ToUInt32 = (delegate*unmanaged<byte*, int, int>) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.ToInt32 = (delegate*unmanaged<byte*, int, int>) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.TcpStatePtr = (void**) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.SharedInfoPtr = (void**) Native.RVAToVA(_pipeReader.ReadUInt32());
GameMethod.Decompress = (delegate*unmanaged<void*, void*, void*, uint, void*, uint, bool>) Native.RVAToVA(_pipeReader.ReadUInt32());