diff --git a/YaeAchievementLib/src/Application.cs b/YaeAchievementLib/src/Application.cs index de57956..c24ccaa 100644 --- a/YaeAchievementLib/src/Application.cs +++ b/YaeAchievementLib/src/Application.cs @@ -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; diff --git a/YaeAchievementLib/src/Goshujin.cs b/YaeAchievementLib/src/Goshujin.cs index 63a807c..3e88a5c 100644 --- a/YaeAchievementLib/src/Goshujin.cs +++ b/YaeAchievementLib/src/Goshujin.cs @@ -25,7 +25,7 @@ internal static unsafe class GameMethod { public static delegate*unmanaged SimulatePointerClick { get; set; } - public static delegate*unmanaged ToUInt32 { get; set; } + public static delegate*unmanaged ToInt32 { get; set; } public static void** TcpStatePtr { get; set; } @@ -94,7 +94,7 @@ internal static class Goshujin { GameMethod.FindGameObject = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32()); GameMethod.EventSystemUpdate = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32()); GameMethod.SimulatePointerClick = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32()); - GameMethod.ToUInt32 = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32()); + GameMethod.ToInt32 = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32()); GameMethod.TcpStatePtr = (void**) Native.RVAToVA(_pipeReader.ReadUInt32()); GameMethod.SharedInfoPtr = (void**) Native.RVAToVA(_pipeReader.ReadUInt32()); GameMethod.Decompress = (delegate*unmanaged) Native.RVAToVA(_pipeReader.ReadUInt32());