diff options
Diffstat (limited to 'Source/Memory.cpp')
| -rw-r--r-- | Source/Memory.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
| diff --git a/Source/Memory.cpp b/Source/Memory.cpp index 2d0d4a9..7bc3b2f 100644 --- a/Source/Memory.cpp +++ b/Source/Memory.cpp | |||
| @@ -39,11 +39,6 @@ Memory::Memory(const std::string& processName) { | |||
| 39 | if (_baseAddress == 0) { | 39 | if (_baseAddress == 0) { |
| 40 | throw std::exception("Couldn't find the base process address!"); | 40 | throw std::exception("Couldn't find the base process address!"); |
| 41 | } | 41 | } |
| 42 | |||
| 43 | // Unprotect regions of memory | ||
| 44 | |||
| 45 | DWORD oldProtect; | ||
| 46 | VirtualProtectEx(_handle, (LPVOID)_baseAddress, sizeof(DWORD), PAGE_READWRITE, &oldProtect); | ||
| 47 | } | 42 | } |
| 48 | 43 | ||
| 49 | Memory::~Memory() { | 44 | Memory::~Memory() { |
| @@ -55,7 +50,7 @@ int Memory::GetCurrentFrame() | |||
| 55 | int SCRIPT_FRAMES; | 50 | int SCRIPT_FRAMES; |
| 56 | if (GLOBALS == 0x5B28C0) { | 51 | if (GLOBALS == 0x5B28C0) { |
| 57 | SCRIPT_FRAMES = 0x5BE3B0; | 52 | SCRIPT_FRAMES = 0x5BE3B0; |
| 58 | } else if (GLOBALS == 0x62A080) { | 53 | } else if (GLOBALS == 0x62D0A0) { |
| 59 | SCRIPT_FRAMES = 0x63651C; | 54 | SCRIPT_FRAMES = 0x63651C; |
| 60 | } else { | 55 | } else { |
| 61 | throw std::exception("Unknown value for Globals!"); | 56 | throw std::exception("Unknown value for Globals!"); |
