From a21bb513137eca745c16230edaf6200d666b03bb Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 26 Jan 2019 15:25:57 -0800 Subject: Challenge is not working, all else is fine. --- Source/Memory.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Source/Memory.cpp') 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) { if (_baseAddress == 0) { throw std::exception("Couldn't find the base process address!"); } - - // Unprotect regions of memory - - DWORD oldProtect; - VirtualProtectEx(_handle, (LPVOID)_baseAddress, sizeof(DWORD), PAGE_READWRITE, &oldProtect); } Memory::~Memory() { @@ -55,7 +50,7 @@ int Memory::GetCurrentFrame() int SCRIPT_FRAMES; if (GLOBALS == 0x5B28C0) { SCRIPT_FRAMES = 0x5BE3B0; - } else if (GLOBALS == 0x62A080) { + } else if (GLOBALS == 0x62D0A0) { SCRIPT_FRAMES = 0x63651C; } else { throw std::exception("Unknown value for Globals!"); -- cgit 1.4.1