From f255be24d96352c43ec5197cf1bfd6a5a7bb47be Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 22 Oct 2018 19:53:18 -0700 Subject: Updates to the list of offsets -- being more explicit now --- WitnessRandomizer/Memory.cpp | Bin 4288 -> 4252 bytes WitnessRandomizer/WitnessRandomizer.cpp | Bin 8272 -> 13170 bytes WitnessRandomizer/WitnessRandomizer.h | 15 ++++++++++++--- WitnessRandomizer/WitnessRandomizer.vcxproj | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) (limited to 'WitnessRandomizer') diff --git a/WitnessRandomizer/Memory.cpp b/WitnessRandomizer/Memory.cpp index b15685b..f7e28d6 100644 Binary files a/WitnessRandomizer/Memory.cpp and b/WitnessRandomizer/Memory.cpp differ diff --git a/WitnessRandomizer/WitnessRandomizer.cpp b/WitnessRandomizer/WitnessRandomizer.cpp index cd60a2b..ebf0146 100644 Binary files a/WitnessRandomizer/WitnessRandomizer.cpp and b/WitnessRandomizer/WitnessRandomizer.cpp differ diff --git a/WitnessRandomizer/WitnessRandomizer.h b/WitnessRandomizer/WitnessRandomizer.h index 4d4684e..26affa3 100644 --- a/WitnessRandomizer/WitnessRandomizer.h +++ b/WitnessRandomizer/WitnessRandomizer.h @@ -1,13 +1,22 @@ #pragma once +int SWAP_TARGETS = 0x1; +int SWAP_PATHWAYS = 0x2; +int SWAP_STYLE = 0x40; +int SWAP_COLORS = 0x4; +int SWAP_TRACED = 0x80; + + +int SWAP_SIZE = 0x8; + + class WitnessRandomizer { public: - int RANDOMIZE_TARGETS = 0x1; - int RANDOMIZE_DATA = 0x2; - + WitnessRandomizer() = default; void Randomize(std::vector panels, int flags); + void SwapPanels(int panel1, int panel2, int flags); private: void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); diff --git a/WitnessRandomizer/WitnessRandomizer.vcxproj b/WitnessRandomizer/WitnessRandomizer.vcxproj index 41387cf..22e609a 100644 --- a/WitnessRandomizer/WitnessRandomizer.vcxproj +++ b/WitnessRandomizer/WitnessRandomizer.vcxproj @@ -99,13 +99,14 @@ - Use + NotUsing Level3 Disabled true _DEBUG;_CONSOLE;%(PreprocessorDefinitions) true pch.h + stdcpp17 Console -- cgit 1.4.1