Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sub_10001020()
- {
- DWORD flOldProtect;
- DWORD v8;
- CHAR Text[1024];
- if (MemoryHelper::GetChar(0x53F417) == -24)
- {
- MemoryHelper::RedirectCall(0x53F418, (void*)sub_10001510);
- }
- else
- {
- sprintf_s(
- Text,
- sizeof(Text),
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 5501975,
- "GetMouseState"
- );
- if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
- ExitProcess(0);
- }
- if (MemoryHelper::GetChar(0x57C59B) == -1)
- {
- MemoryHelper::SetChar(0x57C59B, -24);
- MemoryHelper::RedirectCall(0x57C59C, (void*)sub_100015B0);
- MemoryHelper::SetChar(0x57C5A0, -112);
- }
- else
- {
- sprintf_s(
- Text,
- sizeof(Text),
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 5752219,
- "SetCursorPos"
- );
- if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
- ExitProcess(0);
- }
- if (MemoryHelper::GetChar(0x748A7C) == -1)
- {
- MemoryHelper::SetChar(0x748A7C, -24);
- MemoryHelper::RedirectCall(0x748A7D, (void*)sub_100015D0);
- MemoryHelper::SetChar(0x748A81, -112);
- }
- else if (MemoryHelper::GetChar(0x748ACC) == -1)
- {
- MemoryHelper::SetChar(0x748ACC, -24);
- MemoryHelper::RedirectCall(0x748ACD, (void*)sub_100015D0);
- MemoryHelper::SetChar(0x748AD1, -112);
- }
- else
- {
- sprintf_s(
- Text,
- sizeof(Text),
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 7637708,
- "DispatchMessage"
- );
- if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
- ExitProcess(0);
- }
- if (MemoryHelper::GetChar(0x746A08) == 28)
- {
- MemoryHelper::SetChar(0x746A08, 32);
- }
- else if (MemoryHelper::GetChar(0x746A58) == 28)
- {
- MemoryHelper::SetChar(0x746A58, 32);
- }
- else
- {
- sprintf_s(
- Text,
- sizeof(Text),
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 7629400,
- "IDirectInput::Acquire"
- );
- if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
- ExitProcess(0);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement