summary refs log tree commit diff stats
path: root/WitnessRandomizer
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-22 19:53:18 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-22 19:53:18 -0700
commitf255be24d96352c43ec5197cf1bfd6a5a7bb47be (patch)
tree9b0cbdd8a578b0953c4ac1360ae2a50c2e184316 /WitnessRandomizer
parent6560b0b5c6169285c2d65980b12ddb2dddac5f79 (diff)
downloadwitness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.gz
witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.bz2
witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.zip
Updates to the list of offsets -- being more explicit now
Diffstat (limited to 'WitnessRandomizer')
-rw-r--r--WitnessRandomizer/Memory.cppbin4288 -> 4252 bytes
-rw-r--r--WitnessRandomizer/WitnessRandomizer.cppbin8272 -> 13170 bytes
-rw-r--r--WitnessRandomizer/WitnessRandomizer.h15
-rw-r--r--WitnessRandomizer/WitnessRandomizer.vcxproj3
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
3int SWAP_TARGETS = 0x1;
4int SWAP_PATHWAYS = 0x2;
5int SWAP_STYLE = 0x40;
6int SWAP_COLORS = 0x4;
7int SWAP_TRACED = 0x80;
8
9
10int SWAP_SIZE = 0x8;
11
12
3class WitnessRandomizer { 13class WitnessRandomizer {
4public: 14public:
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
12private: 21private:
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>