Skip to content

Commit

Permalink
Challenge is not working, all else is fine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbzdarkid committed Jan 26, 2019
1 parent 1e7b51d commit a21bb51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
7 changes: 1 addition & 6 deletions Source/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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!");
Expand Down
2 changes: 1 addition & 1 deletion Source/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <windows.h>

// #define GLOBALS 0x5B28C0
#define GLOBALS 0x62A080
#define GLOBALS 0x62D0A0

// https://github.com/erayarslan/WriteProcessMemory-Example
// http://stackoverflow.com/q/32798185
Expand Down
1 change: 1 addition & 0 deletions Source/Panels.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ std::vector<int> upDownPanels = {
0x28ACB, // Town Blue 4
0x28ACC, // Town Blue 5
0x00029, // UTM Invisible Dots Symmetry 3
0x288AA, // UTM Perspective 4

0x0A3B5, // Tutorial Back Left
0x17CC4, // Mill Elevator Control
Expand Down
2 changes: 1 addition & 1 deletion Source/Randomizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Randomizer {
#define OPEN_RATE 0xE8
#define METADATA 0xF2 // sizeof(short)
#define HOTEL_EP_NAME 0x4BC640
#elif GLOBALS == 0x62A080
#elif GLOBALS == 0x62D0A0
#define PATH_COLOR 0xC0
#define REFLECTION_PATH_COLOR 0xD0
#define DOT_COLOR 0xF0
Expand Down

0 comments on commit a21bb51

Please sign in to comment.