about summary refs log tree commit diff stats
path: root/Source/Memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Memory.h')
-rw-r--r--Source/Memory.h144
1 files changed, 2 insertions, 142 deletions
diff --git a/Source/Memory.h b/Source/Memory.h index 82d1293..1724251 100644 --- a/Source/Memory.h +++ b/Source/Memory.h
@@ -1,7 +1,6 @@
1#pragma once 1#pragma once
2 2
3#define GLOBALS 0x5B28C0 3extern int GLOBALS, POSITION, ORIENTATION, PATH_COLOR, REFLECTION_PATH_COLOR, DOT_COLOR, ACTIVE_COLOR, BACKGROUND_REGION_COLOR, SUCCESS_COLOR_A, SUCCESS_COLOR_B, STROBE_COLOR_A, STROBE_COLOR_B, ERROR_COLOR, PATTERN_POINT_COLOR, PATTERN_POINT_COLOR_A, PATTERN_POINT_COLOR_B, SYMBOL_A, SYMBOL_B, SYMBOL_C, SYMBOL_D, SYMBOL_E, PUSH_SYMBOL_COLORS, OUTER_BACKGROUND, OUTER_BACKGROUND_MODE, TRACED_EDGES, AUDIO_PREFIX, POWER, TARGET, POWER_OFF_ON_FAIL, IS_CYLINDER, CYLINDER_Z0, CYLINDER_Z1, CYLINDER_RADIUS, CURSOR_SPEED_SCALE, NEEDS_REDRAW, SPECULAR_ADD, SPECULAR_POWER, PATH_WIDTH_SCALE, STARTPOINT_SCALE, NUM_DOTS, NUM_CONNECTIONS, MAX_BROADCAST_DISTANCE, DOT_POSITIONS, DOT_FLAGS, DOT_CONNECTION_A, DOT_CONNECTION_B, DECORATIONS, DECORATION_FLAGS, DECORATION_COLORS, NUM_DECORATIONS, REFLECTION_DATA, GRID_SIZE_X, GRID_SIZE_Y, STYLE_FLAGS, SEQUENCE_LEN, SEQUENCE, DOT_SEQUENCE_LEN, DOT_SEQUENCE, DOT_SEQUENCE_LEN_REFLECTION, DOT_SEQUENCE_REFLECTION, NUM_COLORED_REGIONS, COLORED_REGIONS, PANEL_TARGET, SPECULAR_TEXTURE, CABLE_TARGET_2, AUDIO_LOG_NAME, OPEN_RATE, METADATA, HOTEL_EP_NAME;
4// #define GLOBALS 0x62D0A0
5 4
6enum class ProcStatus { 5enum class ProcStatus {
7 NotRunning, 6 NotRunning,
@@ -79,6 +78,7 @@ private:
79 void Heartbeat(HWND window, WPARAM wParam); 78 void Heartbeat(HWND window, WPARAM wParam);
80 bool Initialize(); 79 bool Initialize();
81 void* ComputeOffset(std::vector<int> offsets); 80 void* ComputeOffset(std::vector<int> offsets);
81 void LoadPanelOffsets();
82 82
83 int _previousFrame = 0; 83 int _previousFrame = 0;
84 bool _threadActive = false; 84 bool _threadActive = false;
@@ -98,143 +98,3 @@ private:
98 friend class ChallengeRandomizer; 98 friend class ChallengeRandomizer;
99 friend class Randomizer; 99 friend class Randomizer;
100}; 100};
101
102#if GLOBALS == 0x5B28C0
103#define POSITION 0x24
104#define ORIENTATION 0x34
105#define PATH_COLOR 0xC8
106#define REFLECTION_PATH_COLOR 0xD8
107#define DOT_COLOR 0xF8
108#define ACTIVE_COLOR 0x108
109#define BACKGROUND_REGION_COLOR 0x118
110#define SUCCESS_COLOR_A 0x128
111#define SUCCESS_COLOR_B 0x138
112#define STROBE_COLOR_A 0x148
113#define STROBE_COLOR_B 0x158
114#define ERROR_COLOR 0x168
115#define PATTERN_POINT_COLOR 0x188
116#define PATTERN_POINT_COLOR_A 0x198
117#define PATTERN_POINT_COLOR_B 0x1A8
118#define SYMBOL_A 0x1B8
119#define SYMBOL_B 0x1C8
120#define SYMBOL_C 0x1D8
121#define SYMBOL_D 0x1E8
122#define SYMBOL_E 0x1F8
123#define PUSH_SYMBOL_COLORS 0x208
124#define OUTER_BACKGROUND 0x20C
125#define OUTER_BACKGROUND_MODE 0x21C
126#define TRACED_EDGES 0x230
127#define AUDIO_PREFIX 0x278
128#define POWER 0x2A8
129#define TARGET 0x2BC
130#define POWER_OFF_ON_FAIL 0x2C0
131#define IS_CYLINDER 0x2FC
132#define CYLINDER_Z0 0x300
133#define CYLINDER_Z1 0x304
134#define CYLINDER_RADIUS 0x308
135#define CURSOR_SPEED_SCALE 0x358
136#define NEEDS_REDRAW 0x384
137#define SPECULAR_ADD 0x398
138#define SPECULAR_POWER 0x39C
139#define PATH_WIDTH_SCALE 0x3A4
140#define STARTPOINT_SCALE 0x3A8
141#define NUM_DOTS 0x3B8
142#define NUM_CONNECTIONS 0x3BC
143#define MAX_BROADCAST_DISTANCE 0x3C0
144#define DOT_POSITIONS 0x3C8
145#define DOT_FLAGS 0x3D0
146#define DOT_CONNECTION_A 0x3D8
147#define DOT_CONNECTION_B 0x3E0
148#define DECORATIONS 0x420
149#define DECORATION_FLAGS 0x428
150#define DECORATION_COLORS 0x430
151#define NUM_DECORATIONS 0x438
152#define REFLECTION_DATA 0x440
153#define GRID_SIZE_X 0x448
154#define GRID_SIZE_Y 0x44C
155#define STYLE_FLAGS 0x450
156#define SEQUENCE_LEN 0x45C
157#define SEQUENCE 0x460
158#define DOT_SEQUENCE_LEN 0x468
159#define DOT_SEQUENCE 0x470
160#define DOT_SEQUENCE_LEN_REFLECTION 0x478
161#define DOT_SEQUENCE_REFLECTION 0x480
162#define NUM_COLORED_REGIONS 0x4A0
163#define COLORED_REGIONS 0x4A8
164#define PANEL_TARGET 0x4B0
165#define SPECULAR_TEXTURE 0x4D8
166#define CABLE_TARGET_2 0xD8
167#define AUDIO_LOG_NAME 0xC8
168#define OPEN_RATE 0xE8
169#define METADATA 0xF2 // sizeof(short)
170#define HOTEL_EP_NAME 0x4BC640
171#elif GLOBALS == 0x62D0A0
172#define POSITION 0x24
173#define ORIENTATION 0x34
174#define PATH_COLOR 0xC0
175#define REFLECTION_PATH_COLOR 0xD0
176#define DOT_COLOR 0xF0
177#define ACTIVE_COLOR 0x100
178#define BACKGROUND_REGION_COLOR 0x110
179#define SUCCESS_COLOR_A 0x120
180#define SUCCESS_COLOR_B 0x130
181#define STROBE_COLOR_A 0x140
182#define STROBE_COLOR_B 0x150
183#define ERROR_COLOR 0x160
184#define PATTERN_POINT_COLOR 0x180
185#define PATTERN_POINT_COLOR_A 0x190
186#define PATTERN_POINT_COLOR_B 0x1A0
187#define SYMBOL_A 0x1B0
188#define SYMBOL_B 0x1C0
189#define SYMBOL_C 0x1D0
190#define SYMBOL_D 0x1E0
191#define SYMBOL_E 0x1F0
192#define PUSH_SYMBOL_COLORS 0x200
193#define OUTER_BACKGROUND 0x204
194#define OUTER_BACKGROUND_MODE 0x214
195#define TRACED_EDGES 0x228
196#define AUDIO_PREFIX 0x270
197#define POWER 0x2A0
198#define TARGET 0x2B4
199#define POWER_OFF_ON_FAIL 0x2B8
200#define IS_CYLINDER 0x2F4
201#define CYLINDER_Z0 0x2F8
202#define CYLINDER_Z1 0x2FC
203#define CYLINDER_RADIUS 0x300
204#define CURSOR_SPEED_SCALE 0x350
205#define NEEDS_REDRAW 0x37C
206#define SPECULAR_ADD 0x38C
207#define SPECULAR_POWER 0x390
208#define PATH_WIDTH_SCALE 0x39C
209#define STARTPOINT_SCALE 0x3A0
210#define NUM_DOTS 0x3B4
211#define NUM_CONNECTIONS 0x3B8
212#define MAX_BROADCAST_DISTANCE 0x3BC
213#define DOT_POSITIONS 0x3C0
214#define DOT_FLAGS 0x3C8
215#define DOT_CONNECTION_A 0x3D0
216#define DOT_CONNECTION_B 0x3D8
217#define DECORATIONS 0x418
218#define DECORATION_FLAGS 0x420
219#define DECORATION_COLORS 0x428
220#define NUM_DECORATIONS 0x430
221#define REFLECTION_DATA 0x438
222#define GRID_SIZE_X 0x440
223#define GRID_SIZE_Y 0x444
224#define STYLE_FLAGS 0x448
225#define SEQUENCE_LEN 0x454
226#define SEQUENCE 0x458
227#define DOT_SEQUENCE_LEN 0x460
228#define DOT_SEQUENCE 0x468
229#define DOT_SEQUENCE_LEN_REFLECTION 0x470
230#define DOT_SEQUENCE_REFLECTION 0x478
231#define NUM_COLORED_REGIONS 0x498
232#define COLORED_REGIONS 0x4A0
233#define PANEL_TARGET 0x4A8
234#define SPECULAR_TEXTURE 0x4D0
235#define CABLE_TARGET_2 0xD0
236#define AUDIO_LOG_NAME 0x0
237#define OPEN_RATE 0xE0
238#define METADATA 0x13A // sizeof(short)
239#define HOTEL_EP_NAME 0x51E340
240#endif \ No newline at end of file