summary refs log tree commit diff stats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Memory.cpp7
-rw-r--r--Source/Memory.h2
-rw-r--r--Source/Panels.h1
-rw-r--r--Source/Randomizer.h2
4 files changed, 4 insertions, 8 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!");
diff --git a/Source/Memory.h b/Source/Memory.h index fa9eb60..cce06ba 100644 --- a/Source/Memory.h +++ b/Source/Memory.h
@@ -5,7 +5,7 @@
5#include <windows.h> 5#include <windows.h>
6 6
7// #define GLOBALS 0x5B28C0 7// #define GLOBALS 0x5B28C0
8#define GLOBALS 0x62A080 8#define GLOBALS 0x62D0A0
9 9
10// https://github.com/erayarslan/WriteProcessMemory-Example 10// https://github.com/erayarslan/WriteProcessMemory-Example
11// http://stackoverflow.com/q/32798185 11// http://stackoverflow.com/q/32798185
diff --git a/Source/Panels.h b/Source/Panels.h index 9eb1a8e..5b4e085 100644 --- a/Source/Panels.h +++ b/Source/Panels.h
@@ -46,6 +46,7 @@ std::vector<int> upDownPanels = {
46 0x28ACB, // Town Blue 4 46 0x28ACB, // Town Blue 4
47 0x28ACC, // Town Blue 5 47 0x28ACC, // Town Blue 5
48 0x00029, // UTM Invisible Dots Symmetry 3 48 0x00029, // UTM Invisible Dots Symmetry 3
49 0x288AA, // UTM Perspective 4
49 50
50 0x0A3B5, // Tutorial Back Left 51 0x0A3B5, // Tutorial Back Left
51 0x17CC4, // Mill Elevator Control 52 0x17CC4, // Mill Elevator Control
diff --git a/Source/Randomizer.h b/Source/Randomizer.h index aeccbeb..6029513 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h
@@ -117,7 +117,7 @@ private:
117#define OPEN_RATE 0xE8 117#define OPEN_RATE 0xE8
118#define METADATA 0xF2 // sizeof(short) 118#define METADATA 0xF2 // sizeof(short)
119#define HOTEL_EP_NAME 0x4BC640 119#define HOTEL_EP_NAME 0x4BC640
120#elif GLOBALS == 0x62A080 120#elif GLOBALS == 0x62D0A0
121#define PATH_COLOR 0xC0 121#define PATH_COLOR 0xC0
122#define REFLECTION_PATH_COLOR 0xD0 122#define REFLECTION_PATH_COLOR 0xD0
123#define DOT_COLOR 0xF0 123#define DOT_COLOR 0xF0