[saco] Implement/match DisableMousePositionUpdate()

This commit is contained in:
RD42 2024-07-28 23:04:38 +08:00
parent 7cc348d2c4
commit bc7a9114a0

View File

@ -13,6 +13,7 @@ BOOL ApplyPreGamePatches();
void ApplyInGamePatches();
void InitAnimNameHashes();
DWORD dwDummyActiveMouseState;
char *szGameTextMessage;
HWND hWindowHandle;
@ -179,6 +180,21 @@ void UpdatePads()
_asm call edx
}
void DisableMousePositionUpdate()
{
//*(DWORD*)0xB7340C = 0;
//*(DWORD*)0xB73410 = 0;
//*(DWORD*)0xB73414 = 0;
memset((PVOID)0xB7340C,0,12);
UnFuck(0x53F47A,4);
UnFuck(0x53F49A,4);
UnFuck(0x53F4B3,4);
*(DWORD*)0x53F47A = (DWORD)&dwDummyActiveMouseState;
*(DWORD*)0x53F49A = (DWORD)&dwDummyActiveMouseState;
*(DWORD*)0x53F4B3 = (DWORD)&dwDummyActiveMouseState;
}
void CGame::InitGame()
{
// Create a buffer for game text.