This repository has been archived by the owner on May 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Core.hpp
47 lines (37 loc) · 1.47 KB
/
Core.hpp
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
#pragma once
#include <Windows.h>
#include <iostream>
#include <cstdint>
#include <memory.h>
#include <map>
#include <mutex>
#include <vector>
#include <atomic>
#include <array>
#include <list>
#include <string>
#include <unordered_map>
#include <optional>
#include <filesystem>
#include <fstream>
#include "Dependencies/Direct3D/Direct3D.h"
//add lib
#include "dependencies/Json/json.hpp"
#include <ImGui/imgui.h>
#include <ImGui/backends/imgui_impl_dx11.h>
#include <ImGui/backends/imgui_impl_win32.h>
#include <ImGui/imgui_internal.h>
#include <ImGui/misc/cpp/imgui_stdlib.h>
#include "GlobalSetting.hpp"
#include "Dependencies/MinHook/MinHook.h"
#define CLASS(assembly, namespaze, klass) static Il2CppClass* ThisClass() { return I2Hrame->GetClassEx(assembly, namespaze, klass); }
#define MEMBER(klass, name, offset) struct { char __pad__##name[offset]; klass name; }
#define STATIC_MEMBER(klass, name, offset) static klass get_##name() { return *reinterpret_cast<klass*>(*reinterpret_cast<uintptr_t*>((uintptr_t)ThisClass() + 0xB8) + offset); } static void set_##name(klass value) { *reinterpret_cast<klass*>(*reinterpret_cast<uintptr_t*>((uintptr_t)ThisClass() + 0xB8) + offset) = value; }
inline ID3D11Device* pDevice = NULL;
inline ID3D11DeviceContext* pContext = NULL;
inline ID3D11RenderTargetView* mainRenderTargetView = NULL;
inline WNDPROC oWndProc = NULL;
inline HWND hWnd = NULL;
#include "Utils.h"
#include "Cheat.h"
#include "Device.h"