Minor cleanup

This commit is contained in:
Grinch_ 2021-10-17 17:02:48 +06:00
parent ffe7d1c816
commit 112c69eb0c
2 changed files with 4 additions and 7 deletions

View File

@ -288,13 +288,10 @@ static int _cdecl _GetMouseState(Mouse* pMouse)
DIMOUSE->Unacquire();
return -1;
}
if (DIMOUSE->GetDeviceState(20, pMouse) < 0)
if (DIMOUSE->GetDeviceState(sizeof(Mouse), pMouse) < 0)
{
if (DIMOUSE->Acquire() == -2147024866)
{
while (DIMOUSE->Acquire() == -2147024866);
}
while (DIMOUSE->Acquire() == DIERR_NOTINITIALIZED);
}
pMouse->buttons[0] = (GetAsyncKeyState(1) >> 8);

View File

@ -2,5 +2,5 @@
#define MENU_NAME "Cheat Menu"
#define MENU_VERSION_NUMBER "3.0"
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
#define BUILD_NUMBER "20211009"
#define BUILD_NUMBER "20211017"
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"