[AntiCheat] Disable process protection as it conflicts with steam
This commit is contained in:
parent
22fbfcd588
commit
07746095b7
@ -99,6 +99,7 @@ namespace Components
|
|||||||
|
|
||||||
void AntiCheat::ReadIntegrityCheck()
|
void AntiCheat::ReadIntegrityCheck()
|
||||||
{
|
{
|
||||||
|
#ifdef PROCTECT_PROCESS
|
||||||
static Utils::Time::Interval check;
|
static Utils::Time::Interval check;
|
||||||
|
|
||||||
if(check.elapsed(20s))
|
if(check.elapsed(20s))
|
||||||
@ -118,6 +119,7 @@ namespace Components
|
|||||||
|
|
||||||
// Set the integrity flag
|
// Set the integrity flag
|
||||||
AntiCheat::Flags |= AntiCheat::IntergrityFlag::READ_INTEGRITY_CHECK;
|
AntiCheat::Flags |= AntiCheat::IntergrityFlag::READ_INTEGRITY_CHECK;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void AntiCheat::FlagIntegrityCheck()
|
void AntiCheat::FlagIntegrityCheck()
|
||||||
@ -327,6 +329,7 @@ namespace Components
|
|||||||
|
|
||||||
unsigned long AntiCheat::ProtectProcess()
|
unsigned long AntiCheat::ProtectProcess()
|
||||||
{
|
{
|
||||||
|
#ifdef PROCTECT_PROCESS
|
||||||
Utils::Memory::Allocator allocator;
|
Utils::Memory::Allocator allocator;
|
||||||
|
|
||||||
HANDLE hToken = nullptr;
|
HANDLE hToken = nullptr;
|
||||||
@ -461,6 +464,9 @@ namespace Components
|
|||||||
pDacl,
|
pDacl,
|
||||||
nullptr // SACL
|
nullptr // SACL
|
||||||
);
|
);
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
AntiCheat::AntiCheat()
|
AntiCheat::AntiCheat()
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
#define AntiCheat SubComponent
|
#define AntiCheat SubComponent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Uncomment to enable process protection (conflicts with steam!)
|
||||||
|
//#define PROCTECT_PROCESS
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
class AntiCheat : public Component
|
class AntiCheat : public Component
|
||||||
@ -32,7 +35,10 @@ namespace Components
|
|||||||
INITIALIZATION = (1 << 0),
|
INITIALIZATION = (1 << 0),
|
||||||
MEMORY_SCAN = (1 << 1),
|
MEMORY_SCAN = (1 << 1),
|
||||||
SCAN_INTEGRITY_CHECK = (1 << 2),
|
SCAN_INTEGRITY_CHECK = (1 << 2),
|
||||||
|
|
||||||
|
#ifdef PROCTECT_PROCESS
|
||||||
READ_INTEGRITY_CHECK = (1 << 3),
|
READ_INTEGRITY_CHECK = (1 << 3),
|
||||||
|
#endif
|
||||||
|
|
||||||
MAX_FLAG,
|
MAX_FLAG,
|
||||||
};
|
};
|
||||||
|
@ -773,7 +773,7 @@ namespace Components
|
|||||||
Renderer::OnFrame(ServerList::Frame);
|
Renderer::OnFrame(ServerList::Frame);
|
||||||
|
|
||||||
// This is placed here in case the anticheat has been disabled!
|
// This is placed here in case the anticheat has been disabled!
|
||||||
#if !defined(DEBUG) && !defined(DISABLE_ANTICHEAT)
|
#if !defined(DEBUG) && !defined(DISABLE_ANTICHEAT) && defined(PROCTECT_PROCESS)
|
||||||
Renderer::OnFrame(AntiCheat::ReadIntegrityCheck);
|
Renderer::OnFrame(AntiCheat::ReadIntegrityCheck);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user