diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-22 19:53:18 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-22 19:53:18 -0700 |
commit | f255be24d96352c43ec5197cf1bfd6a5a7bb47be (patch) | |
tree | 9b0cbdd8a578b0953c4ac1360ae2a50c2e184316 | |
parent | 6560b0b5c6169285c2d65980b12ddb2dddac5f79 (diff) | |
download | witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.gz witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.bz2 witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.zip |
Updates to the list of offsets -- being more explicit now
-rw-r--r-- | WitnessRandomizer/Memory.cpp | bin | 4288 -> 4252 bytes | |||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.cpp | bin | 8272 -> 13170 bytes | |||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.h | 15 | ||||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.vcxproj | 3 |
4 files changed, 14 insertions, 4 deletions
diff --git a/WitnessRandomizer/Memory.cpp b/WitnessRandomizer/Memory.cpp index b15685b..f7e28d6 100644 --- a/WitnessRandomizer/Memory.cpp +++ b/WitnessRandomizer/Memory.cpp | |||
Binary files differ | |||
diff --git a/WitnessRandomizer/WitnessRandomizer.cpp b/WitnessRandomizer/WitnessRandomizer.cpp index cd60a2b..ebf0146 100644 --- a/WitnessRandomizer/WitnessRandomizer.cpp +++ b/WitnessRandomizer/WitnessRandomizer.cpp | |||
Binary files 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 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | int SWAP_TARGETS = 0x1; | ||
4 | int SWAP_PATHWAYS = 0x2; | ||
5 | int SWAP_STYLE = 0x40; | ||
6 | int SWAP_COLORS = 0x4; | ||
7 | int SWAP_TRACED = 0x80; | ||
8 | |||
9 | |||
10 | int SWAP_SIZE = 0x8; | ||
11 | |||
12 | |||
3 | class WitnessRandomizer { | 13 | class WitnessRandomizer { |
4 | public: | 14 | public: |
5 | int RANDOMIZE_TARGETS = 0x1; | 15 | |
6 | int RANDOMIZE_DATA = 0x2; | ||
7 | |||
8 | WitnessRandomizer() = default; | 16 | WitnessRandomizer() = default; |
9 | 17 | ||
10 | void Randomize(std::vector<int> panels, int flags); | 18 | void Randomize(std::vector<int> panels, int flags); |
19 | void SwapPanels(int panel1, int panel2, int flags); | ||
11 | 20 | ||
12 | private: | 21 | private: |
13 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); | 22 | 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 @@ | |||
99 | </ItemDefinitionGroup> | 99 | </ItemDefinitionGroup> |
100 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 100 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
101 | <ClCompile> | 101 | <ClCompile> |
102 | <PrecompiledHeader>Use</PrecompiledHeader> | 102 | <PrecompiledHeader>NotUsing</PrecompiledHeader> |
103 | <WarningLevel>Level3</WarningLevel> | 103 | <WarningLevel>Level3</WarningLevel> |
104 | <Optimization>Disabled</Optimization> | 104 | <Optimization>Disabled</Optimization> |
105 | <SDLCheck>true</SDLCheck> | 105 | <SDLCheck>true</SDLCheck> |
106 | <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 106 | <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
107 | <ConformanceMode>true</ConformanceMode> | 107 | <ConformanceMode>true</ConformanceMode> |
108 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | 108 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> |
109 | <LanguageStandard>stdcpp17</LanguageStandard> | ||
109 | </ClCompile> | 110 | </ClCompile> |
110 | <Link> | 111 | <Link> |
111 | <SubSystem>Console</SubSystem> | 112 | <SubSystem>Console</SubSystem> |