forked from Jadis0x/il2cpp-reverse-engineering-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
42 lines (26 loc) · 750 Bytes
/
main.cpp
File metadata and controls
42 lines (26 loc) · 750 Bytes
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
#include "pch-il2cpp.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <iostream>
#include "il2cpp-appdata.h"
#include "helpers.h"
#include <chrono>
#include <thread>
#include "Il2CppHelper.h"
using namespace app;
extern const LPCWSTR LOG_FILE = L"il2cpp-log.txt";
void Run()
{
// Initialize thread data - DO NOT REMOVE
il2cpp_thread_attach(il2cpp_domain_get());
il2cppi_new_console();
Il2CppHelper* _helper = new Il2CppHelper();
while (true) {
if (GetAsyncKeyState(VK_F1) & 0x8000) {
const Il2CppImage* _image = _helper->GetImage("Assembly-CSharp.dll");
_helper->GetMethodInfo(_image, "SetFOV", 1, "NolanBehaviour", "");
}
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
delete _helper;
}