Dota2Patcher
 
Загрузка...
Поиск...
Не найдено
Dota2Patcher.h
См. документацию.
1#pragma once
2
3static void draw_logo() {
4 const char* ascii = R"(
5 _____ _ ___ _____ _ _
6 | __ \ | | |__ \| __ \ | | | |
7 | | | | ___ | |_ __ _ ) | |__) |_ _| |_ ___| |__ ___ _ __
8 | | | |/ _ \| __/ _` | / /| ___/ _` | __/ __| '_ \ / _ \ '__|
9 | |__| | (_) | || (_| |/ /_| | | (_| | || (__| | | | __/ |
10 |_____/ \___/ \__\__,_|____|_| \__,_|\__\___|_| |_|\___|_|
11
12 [!] To open settings, launch Dota2Patcher with SHIFT pressed
13)";
14 cout << ascii << endl;
15}
16
17class Patches {
18public:
19 struct Patterns {
20 static inline const string create_interface = "4C 8B ? ? ? ? ? 4C 8B ? 4C 8B ? 4D 85 ? 74 ? 49 8B ? ? 4D 8B";
21 static inline const string CDOTACamera = "48 8D ? ? ? ? ? 48 8D ? ? ? ? ? 48 89 ? ? ? ? ? E9 ? ? ? ? CC CC CC CC CC CC CC CC 48 8D";
22 static inline const string set_rendering_enabled = "0F 84 ? ? ? ? 4D 89 73";
23 static inline const string set_rendering_enabled_fix = "0F 84 ? ? ? ? 48 8B ? 48 85 ? 74 ? 48 8B ? 48 8B";
24 static inline const string visible_by_enemy = "75 ? 41 8B CE E8 ? ? ? ? 48 85 C0 74 ? 80 B8";
25 };
26
27 struct PatchInfo {
28 string name;
29 string module;
30 string pattern;
32 int offset = 0;
34 };
35
36 static void add_patch(const PatchInfo& patch) {
37 g_patches.push_back(patch);
38 }
39
40 static inline std::vector<PatchInfo> g_patches;
41};
PATCH_TYPE
Definition Enums.h:28
Definition CDOTACamera.h:6
Definition Dota2Patcher.h:17
static void add_patch(const PatchInfo &patch)
Definition Dota2Patcher.h:36
static std::vector< PatchInfo > g_patches
Definition Dota2Patcher.h:40
Definition Dota2Patcher.h:27
string custom_patch_bytes
Definition Dota2Patcher.h:33
PATCH_TYPE patch_type
Definition Dota2Patcher.h:31
string name
Definition Dota2Patcher.h:28
string string pattern
Definition Dota2Patcher.h:30
int offset
Definition Dota2Patcher.h:32
Definition Dota2Patcher.h:19
static const string create_interface
Definition Dota2Patcher.h:20
static const string set_rendering_enabled_fix
Definition Dota2Patcher.h:23
static const string visible_by_enemy
Definition Dota2Patcher.h:24
static const string set_rendering_enabled
Definition Dota2Patcher.h:22