[AntiCheat] Disable process protection for dedis
This commit is contained in:
parent
1b4393f095
commit
e3fc5231a6
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user