summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-21 22:29:59 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-21 22:29:59 -0700
commit7b9c1ce45064fab605b77794854109ec91ce8f28 (patch)
tree5e545ff30ac3ff2cf26f31fc22b45d2a7069c396
parentd5d5868cc4fb6ddff6ee73d9582a629b170ced64 (diff)
downloadwitness-tutorializer-7b9c1ce45064fab605b77794854109ec91ce8f28.tar.gz
witness-tutorializer-7b9c1ce45064fab605b77794854109ec91ce8f28.tar.bz2
witness-tutorializer-7b9c1ce45064fab605b77794854109ec91ce8f28.zip
v0.2
-rw-r--r--WitnessRandomizer/WitnessRandomizer.cppbin2468 -> 8272 bytes
-rw-r--r--WitnessRandomizer/WitnessRandomizer.h16
-rw-r--r--WitnessRandomizer/WitnessRandomizer.vcxproj1
-rw-r--r--WitnessRandomizer/WitnessRandomizer.vcxproj.filters3
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
3class WitnessRandomizer {
4public:
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
12private:
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">