-
Notifications
You must be signed in to change notification settings - Fork 32
/
Patches.h
114 lines (94 loc) · 2.4 KB
/
Patches.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#pragma once
#include <d3d9.h>
#include <imgui.h>
#include "Settings.h"
extern HMODULE g_module_handle;
extern std::wstring wrapperName;
extern std::wstring rootPath;
extern std::wstring logPath;
extern HWND hWindow;
namespace re4t
{
namespace init
{
// Init functions
void AspectRatioTweaks();
void AudioTweaks();
void CameraTweaks();
void CommandLine();
void ControllerTweaks();
void ConsoleWnd();
void D3D9Hook();
void DebugDisplay();
void DisplayModeFix();
void DisplayTweaks();
void ExceptionHandler();
void FrameRateFixes();
void FilterXXFixes();
void FrameRateFixes();
bool Game();
void Gameplay();
void HandleLimits();
void HDProject();
void HUDTweaks();
void KeyboardMouseTweaks();
void MathReimpl();
void Misc();
void MouseTurning();
void ModExpansion();
void MultithreadFix();
void QTEfixes();
void Sofdec();
void TitleMenu();
void ToolMenu();
void ToolMenuDebug();
void WndProcHook();
}
}
// Hotkey bindings and parsing
bool ParseConsoleKeyCombo(std::string_view in_combo);
bool ParseConfigMenuKeyCombo(std::string_view in_combo);
bool ParseMouseTurnModifierCombo(std::string_view in_combo);
bool ParseToolMenuKeyCombo(std::string_view in_combo);
bool ParseJetSkiTrickCombo(std::string_view in_combo);
// EndSceneHook
struct EndSceneHook
{
void EndScene_hook(LPDIRECT3DDEVICE9 pDevice);
std::chrono::high_resolution_clock::duration _last_frame_duration;
std::chrono::high_resolution_clock::time_point _start_time;
std::chrono::high_resolution_clock::time_point _last_present_time;
float _cur_monitor_dpi = 1.0f;
ImFont* ESP_font = nullptr;
ImGuiContext* _imgui_context = nullptr;
};
extern EndSceneHook esHook;
extern bool bRebuildFont;
bool ParseImGuiUIFocusCombo(std::string_view in_combo);
// cfgMenu
void cfgMenuRender();
void ShowCfgMenuTip();
extern bool bCfgMenuOpen;
extern bool bWaitingForHotkey;
extern float fLaserColorPicker[3];
extern int iGCBlurMode;
// LAApatch.cpp
void LAACheck();
// Controller vars
extern int* g_XInputDeadzone_LS;
extern int* g_XInputDeadzone_RS;
extern int8_t* AnalogRX_8;
extern int8_t* AnalogRY_9;
extern float* fAnalogLX;
extern float* fAnalogLY;
extern float* fAnalogRX;
extern float* fAnalogRY;
// Mouse vars
extern float* fMousePosX;
extern float* fMousePosY;
extern int32_t* MouseDeltaX;
extern int32_t* MouseDeltaY;
// Camera vars
extern float* fCameraPosX;
extern float* fCameraPosY;
extern float* wepPitch;