Removed junk files. Updated safetyhook library version. Added library MinHook. Reviewed comments.

This commit is contained in:
2025-07-31 10:27:54 +02:00
parent e593734cb6
commit e3cd840911
43 changed files with 3070 additions and 161 deletions

View File

@@ -63,8 +63,6 @@ static void BDFixEnabled(bool fix_enabled);
// Original byte
static std::vector<BYTE> originalBytes = std::vector<BYTE>();
HANDLE g_mutex = NULL;
static std::string GetExecutableFileNameOnly() {
char path[MAX_PATH];
GetModuleFileNameA(nullptr, path, MAX_PATH);
@@ -249,6 +247,7 @@ extern "C" __declspec(dllexport) float GetFOVOut() {
return g_FOV_Out;
}
// Injection functions
static void FOVFixEnabled(bool fix_enabled) {
if (g_fix_enabled && fix_enabled && FOVaddress) {
if (!FOVHook) { // Hook only once
@@ -267,7 +266,6 @@ static void FOVFixEnabled(bool fix_enabled) {
}
}
// Injection functions
static void PhotoFOVFixEnabled (bool fix_enabled) {
if (g_fix_enabled && fix_enabled && PHOTOaddress) {
if (!PhotoFOVHook) { // Hook only once
@@ -377,7 +375,7 @@ static void InitializeLogger()
}
}
// Entrée standard DLL
// Standard dll entry
BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID)
{
if (reason == DLL_PROCESS_ATTACH)