Removed junk files. Updated safetyhook library version. Added library MinHook. Reviewed comments.
This commit is contained in:
@@ -91,7 +91,6 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
|
||||
logger->warn("Some AOB signatures could not be found. Fixes may be partially unavailable.");
|
||||
}
|
||||
}
|
||||
// === Activer ou désactiver les patchs ===
|
||||
if (FOVAddress && CameraAddress && SharpnessAddress)
|
||||
{
|
||||
if (g_fix_enabled)
|
||||
@@ -153,6 +152,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 != nullptr) {
|
||||
if (!FOVHook) { // Hook only once
|
||||
@@ -227,7 +227,7 @@ static void InitializeLogger()
|
||||
}
|
||||
HMODULE g_coreModule = nullptr;
|
||||
|
||||
// Entrée standard DLL
|
||||
// Standard dll entry
|
||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID)
|
||||
{
|
||||
if (reason == DLL_PROCESS_ATTACH)
|
||||
|
||||
Reference in New Issue
Block a user