[AntiCheat] Disable VirtualProtect patch

This commit is contained in:
momo5502 2017-06-11 22:36:28 +02:00
parent de48b1c694
commit 74a39c6e7b
2 changed files with 6 additions and 7 deletions

View File

@ -33,7 +33,6 @@ namespace Components
static void QuickCodeScanner_1();
static void QuickCodeScanner_2();
static void QuickCodeScanner_3();
private:
enum IntergrityFlag

View File

@ -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()