[AntiCheat] Disable process protection for dedis

This commit is contained in:
momo5502 2017-03-04 14:11:37 +01:00
parent 1b4393f095
commit e3fc5231a6
2 changed files with 3 additions and 1 deletions

View File

@ -357,7 +357,7 @@ namespace Components
unsigned long AntiCheat::ProtectProcess() unsigned long AntiCheat::ProtectProcess()
{ {
#ifdef PROCTECT_PROCESS #ifdef PROCTECT_PROCESS
if (Dedicated::IsEnabled()) return 0;
Utils::Memory::Allocator allocator; Utils::Memory::Allocator allocator;
HANDLE hToken = nullptr; HANDLE hToken = nullptr;

View File

@ -59,11 +59,13 @@ namespace Components
void Renderer::Once(Utils::Slot<Renderer::Callback> callback) void Renderer::Once(Utils::Slot<Renderer::Callback> callback)
{ {
if (Dedicated::IsEnabled()) return;
Renderer::FrameOnceSignal.connect(callback); Renderer::FrameOnceSignal.connect(callback);
} }
void Renderer::OnFrame(Utils::Slot<Renderer::Callback> callback) void Renderer::OnFrame(Utils::Slot<Renderer::Callback> callback)
{ {
if (Dedicated::IsEnabled()) return;
Renderer::FrameSignal.connect(callback); Renderer::FrameSignal.connect(callback);
} }