about summary refs log tree commit diff stats
path: root/Source/Memory.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-01-26 15:25:57 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-01-26 15:25:57 -0800
commita21bb513137eca745c16230edaf6200d666b03bb (patch)
tree64eafe0dc91b9ad6541044c61c8d182a9d47b107 /Source/Memory.cpp
parent1e7b51d0c775bd9ad518202473245d6aa7d15357 (diff)
downloadwitness-tutorializer-a21bb513137eca745c16230edaf6200d666b03bb.tar.gz
witness-tutorializer-a21bb513137eca745c16230edaf6200d666b03bb.tar.bz2
witness-tutorializer-a21bb513137eca745c16230edaf6200d666b03bb.zip
Challenge is not working, all else is fine.
Diffstat (limited to 'Source/Memory.cpp')
-rw-r--r--Source/Memory.cpp7
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
49Memory::~Memory() { 44Memory::~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!");