[AntiCheat] Disable vp hook when it's not needed

This commit is contained in:
momo5502 2017-06-02 21:32:29 +02:00
parent 08bff1cf59
commit b219858a52

View File

@ -284,7 +284,10 @@ namespace Components
});
#if !defined(DEBUG) && !defined(DISABLE_ANTICHEAT)
if(!Dedicated::IsEnabled()) AntiCheat::PatchVirtualProtect(VirtualProtect, VirtualProtectEx);
if (!Dedicated::IsEnabled() && !ZoneBuilder::IsEnabled() && !Utils::IsWineEnvironment() && !Loader::PerformingUnitTests())
{
AntiCheat::PatchVirtualProtect(VirtualProtect, VirtualProtectEx);
}
#endif
}