-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.h
71 lines (57 loc) · 1.35 KB
/
helper.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#define DEBUG 0 // used for cutting out functions and instructions at compile time
#include <windows.h>
#include <Psapi.h>
#include <TlHelp32.h>
// Console & Basic Imports
#include <iostream>
#include <conio.h>
#include <string>
#include <thread>
#include <vector>
#include <chrono>
// DX11
#include <d3d9.h>
#pragma comment(lib, "d3d9.lib")
// INTERNET
#include <wininet.h>
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "wininet.lib")
// EXTERNAL LIBS (ImGui & MinHook)
#include "libs/ImGui/imgui.h"
#include "libs/ImGui/imgui_internal.h"
#include "libs/ImGui/imgui_Impl_dx9.h"
#include "libs/ImGui/imgui_Impl_Win32.h"
#include "libs/MinHook/MinHook.h"
/// <summary>
/// Global Variables accessible by anything in the DX9Base Namespace
namespace COD4_SP {
using namespace std::chrono_literals;
inline HMODULE g_hModule{};
inline LPCWSTR g_moduleName{};
inline uintptr_t dwGameBase{};
inline std::atomic_bool g_Running{};
inline std::atomic_bool g_Killswitch = FALSE;
struct Vector2 {
float x, y;
};
struct Vector3 {
float x, y, z;
};
struct Vector4 {
float x, y, z, a;
};
struct DoubleVector2 {
double x, y;
};
struct DoubleVector3 {
double x, y, z;
};
struct DoubleVector4 {
double x, y, z, a;
};
struct matrix
{
float Matrix[16];
};
}