Created
September 12, 2020 14:35
-
-
Save 4el0ve4ik/b2bd38beb866329ae27946986b5489b0 to your computer and use it in GitHub Desktop.
FPSUnlock for Bully
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
BOOL __stdcall DllMain(HINSTANCE, DWORD fdwReason, LPVOID) { | |
if (fdwReason == 1) { | |
DWORD oldProt = 0; | |
void* adr = reinterpret_cast<void*>(0x4061BF); | |
VirtualProtect(adr, 6, PAGE_EXECUTE_READWRITE, &oldProt); | |
*reinterpret_cast<BYTE*>(0x4061BF) = 0x2B; | |
*reinterpret_cast<BYTE*>(0x4061C2) = 0xEB; | |
VirtualProtect(adr, 6, oldProt, NULL); | |
} | |
return TRUE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment