From 1a1bdb7f85adf0f95bc6087ee38f0e4e06ecd03d Mon Sep 17 00:00:00 2001 From: Lightczx <1686188646@qq.com> Date: Wed, 20 Dec 2023 12:43:08 +0800 Subject: [PATCH] #1190 cast data type nuint attempt --- .../Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs index 46bc8d92..17cb0856 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs @@ -227,8 +227,8 @@ internal sealed class GameFpsUnlocker : IGameFpsUnlocker nuint localMemoryUserAssemblyAddress = localMemoryUnityPlayerAddress + unityPlayer.Size; nuint rip = localMemoryUserAssemblyAddress + (uint)offset; - rip += 5; - rip += (uint)*(int*)(rip + 2) + 6; + rip += 5U; + rip += (nuint)(*(int*)(rip + 2)) + 6U; nuint address = userAssembly.Address + (rip - localMemoryUserAssemblyAddress);