[AntiCheat] Disable vp hook when it's not needed
This commit is contained in:
parent
08bff1cf59
commit
b219858a52
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user