From 3557f0ba80942397a9d963208695b4fa80290cb0 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 30 Oct 2018 21:58:46 -0700 Subject: Infinite amounts of cleanup --- Source/RandomizerCore.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/RandomizerCore.h') diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index e8d3661..7ec8e33 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h @@ -12,6 +12,8 @@ __declspec(selectany) int SWAP_AUDIO_NAMES = 0x4; class RandomizerCore { public: + RandomizerCore(); + void Randomize(std::vector& panels, int flags); void RandomizeRange(std::vector &panels, int flags, size_t startIndex, size_t endIndex); void SwapPanels(int panel1, int panel2, int flags); @@ -28,6 +30,9 @@ public: _memory.WriteData({GLOBALS, 0x18, panel*8, offset}, data); } + short ReadMetadata(); + void WriteMetadata(short metadata); + private: Memory _memory = Memory("witness64_d3d11.exe"); }; @@ -95,6 +100,8 @@ private: #define CABLE_TARGET_2 0xD8 #define AUDIO_LOG_NAME 0xC8 #define OPEN_RATE 0xE8 +#define METADATA 0xF2 // sizeof(short) +#define SCRIPT_FRAMES 0x5BE3B0 #elif GLOBALS == 0x62A080 #define PATH_COLOR 0xC0 #define REFLECTION_PATH_COLOR 0xD0 @@ -158,4 +165,6 @@ private: #define CABLE_TARGET_2 0xD0 #define AUDIO_LOG_NAME 0x0 #define OPEN_RATE 0xE0 +#define METADATA 0x13A // sizeof(short) +#define SCRIPT_FRAMES 0x63651C #endif \ No newline at end of file -- cgit 1.4.1