From 0fa16b6f0704bb8e42fc8a23d9c5ecd91e9e2832 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 28 Jul 2024 23:05:58 +0800 Subject: [PATCH] [saco] Implement/match `DisableMouseProcess()` --- saco/game/game.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/saco/game/game.cpp b/saco/game/game.cpp index 7c70cee..d31d95f 100644 --- a/saco/game/game.cpp +++ b/saco/game/game.cpp @@ -205,6 +205,20 @@ void RestoreMousePositionUpdate() *(DWORD*)0x53F4B3 = 0xB7340C; } +void DisableMouseProcess() +{ + UnFuck(0x53F417,5); + memset((PVOID)0x53F417,0x90,5); + + UnFuck(0x53F41F,4); + *(BYTE*)0x53F41F = 0x33; + *(BYTE*)0x53F420 = 0xC0; + *(BYTE*)0x53F421 = 0x0F; + *(BYTE*)0x53F422 = 0x84; +} + +//----------------------------------------------------------- + void CGame::InitGame() { // Create a buffer for game text.