about summary refs log tree commit diff stats
path: root/Test/Temp.cpp
blob: bf6a09ab77721b81cc5b7a4bd953e231a18e082a (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "pch.h"
#include "gtest/gtest.h"
#include "Randomizer.h"
#include <iostream>
#include <fstream>

class Temp : public testing::Test
{
protected:
    std::shared_ptr<Memory> _memory = std::make_shared<Memory>("witness64_d3d11.exe");
    // std::vector<char> ReadSubtitles(int size) {
    //      Memory memory("witness64_d3d11.exe");
    //      std::vector<char> 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<byte> data = ReadSubtitles(166480);
    std::vector<char> data = ReadSubtitles(166480);
    std::ofstream file("raw.txt");
    ASSERT_TRUE(file.is_open());

    std::string hex = "0123456789ABCDEF";
    for (int i=0; i<data.size(); i++) {
        if (data[i] == '\r') continue;
        file << data[i];

    }
    file.close();
}
*/