From 74a39c6e7badd7132301dae3c4311af7c44db056 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 11 Jun 2017 22:36:28 +0200 Subject: [PATCH] [AntiCheat] Disable VirtualProtect patch --- src/Components/Modules/AntiCheat.hpp | 1 - src/Components/Modules/Localization.cpp | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Components/Modules/AntiCheat.hpp b/src/Components/Modules/AntiCheat.hpp index 5c0b5279..1285dab3 100644 --- a/src/Components/Modules/AntiCheat.hpp +++ b/src/Components/Modules/AntiCheat.hpp @@ -33,7 +33,6 @@ namespace Components static void QuickCodeScanner_1(); static void QuickCodeScanner_2(); - static void QuickCodeScanner_3(); private: enum IntergrityFlag diff --git a/src/Components/Modules/Localization.cpp b/src/Components/Modules/Localization.cpp index 6c18412a..14b6dbc9 100644 --- a/src/Components/Modules/Localization.cpp +++ b/src/Components/Modules/Localization.cpp @@ -286,12 +286,12 @@ namespace Components } }); -#if !defined(DEBUG) && !defined(DISABLE_ANTICHEAT) - if (!Dedicated::IsEnabled() && !ZoneBuilder::IsEnabled() && !Utils::IsWineEnvironment() && !Loader::PerformingUnitTests()) - { - AntiCheat::PatchVirtualProtect(VirtualProtect, VirtualProtectEx); - } -#endif +// #if !defined(DEBUG) && !defined(DISABLE_ANTICHEAT) +// if (!Dedicated::IsEnabled() && !ZoneBuilder::IsEnabled() && !Utils::IsWineEnvironment() && !Loader::PerformingUnitTests()) +// { +// AntiCheat::PatchVirtualProtect(VirtualProtect, VirtualProtectEx); +// } +// #endif } Localization::~Localization()