diff options
Diffstat (limited to 'WitnessRandomizer')
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.cpp | bin | 2468 -> 8272 bytes | |||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.h | 16 | ||||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.vcxproj | 1 | ||||
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.vcxproj.filters | 3 |
4 files changed, 20 insertions, 0 deletions
diff --git a/WitnessRandomizer/WitnessRandomizer.cpp b/WitnessRandomizer/WitnessRandomizer.cpp index 6d00a26..cd60a2b 100644 --- a/WitnessRandomizer/WitnessRandomizer.cpp +++ b/WitnessRandomizer/WitnessRandomizer.cpp | |||
Binary files differ | |||
diff --git a/WitnessRandomizer/WitnessRandomizer.h b/WitnessRandomizer/WitnessRandomizer.h new file mode 100644 index 0000000..4d4684e --- /dev/null +++ b/WitnessRandomizer/WitnessRandomizer.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #pragma once | ||
2 | |||
3 | class WitnessRandomizer { | ||
4 | public: | ||
5 | int RANDOMIZE_TARGETS = 0x1; | ||
6 | int RANDOMIZE_DATA = 0x2; | ||
7 | |||
8 | WitnessRandomizer() = default; | ||
9 | |||
10 | void Randomize(std::vector<int> panels, int flags); | ||
11 | |||
12 | private: | ||
13 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); | ||
14 | |||
15 | Memory _memory = Memory("witness64_d3d11.exe"); | ||
16 | }; \ No newline at end of file | ||
diff --git a/WitnessRandomizer/WitnessRandomizer.vcxproj b/WitnessRandomizer/WitnessRandomizer.vcxproj index efcd38c..41387cf 100644 --- a/WitnessRandomizer/WitnessRandomizer.vcxproj +++ b/WitnessRandomizer/WitnessRandomizer.vcxproj | |||
@@ -153,6 +153,7 @@ | |||
153 | <ItemGroup> | 153 | <ItemGroup> |
154 | <ClInclude Include="Memory.h" /> | 154 | <ClInclude Include="Memory.h" /> |
155 | <ClInclude Include="pch.h" /> | 155 | <ClInclude Include="pch.h" /> |
156 | <ClInclude Include="WitnessRandomizer.h" /> | ||
156 | </ItemGroup> | 157 | </ItemGroup> |
157 | <ItemGroup> | 158 | <ItemGroup> |
158 | <ClCompile Include="Memory.cpp" /> | 159 | <ClCompile Include="Memory.cpp" /> |
diff --git a/WitnessRandomizer/WitnessRandomizer.vcxproj.filters b/WitnessRandomizer/WitnessRandomizer.vcxproj.filters index dc08442..e83b7d3 100644 --- a/WitnessRandomizer/WitnessRandomizer.vcxproj.filters +++ b/WitnessRandomizer/WitnessRandomizer.vcxproj.filters | |||
@@ -21,6 +21,9 @@ | |||
21 | <ClInclude Include="Memory.h"> | 21 | <ClInclude Include="Memory.h"> |
22 | <Filter>Header Files</Filter> | 22 | <Filter>Header Files</Filter> |
23 | </ClInclude> | 23 | </ClInclude> |
24 | <ClInclude Include="WitnessRandomizer.h"> | ||
25 | <Filter>Header Files</Filter> | ||
26 | </ClInclude> | ||
24 | </ItemGroup> | 27 | </ItemGroup> |
25 | <ItemGroup> | 28 | <ItemGroup> |
26 | <ClCompile Include="pch.cpp"> | 29 | <ClCompile Include="pch.cpp"> |