#include "gtest/gtest.h" #include "Randomizer.h" #include #include class Temp : public testing::Test { protected: std::shared_ptr _memory = std::make_shared("witness64_d3d11.exe"); // std::vector ReadSubtitles(int size) { // Memory memory("witness64_d3d11.exe"); // std::vector data; // data.resize(size); // ReadProcessMemory(memory._handle, (LPVOID)0x3D89F000, &data[0], sizeof(char) * size, nullptr); // return data; // } }; // TEST_F(Temp, Shipwreck) { // Randomizer randomizer(_memory); // int shipwreck = 0xAFB; // int thEntry = 0x288C; // int si1 = 0x00000022; // int bu1 = 0x6; // int td1 = 0x5D; // int ypp = 0x33EA; // int ramp_activation_shapers = 0x21D5; // int mill_upper_5 = 0x146C; // int mill_entry_left = 0x1E5A; // int mill_upper_7 = 0x03686; // // randomizer.SwapPanels(ypp, mill_upper_7, Randomizer::SWAP::LINES); // } /* TEST_F(Temp, Extract) { // std::vector data = ReadSubtitles(166480); std::vector data = ReadSubtitles(166480); std::ofstream file("raw.txt"); ASSERT_TRUE(file.is_open()); std::string hex = "0123456789ABCDEF"; for (int i=0; isummary refs log tree commit diff stats
blob: 4b722c823d4409473cbea5f10ff49a98c7a52e34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32