Disable anticheat for good

This commit is contained in:
Diavolo 2021-08-28 22:33:14 +02:00
parent 52748b4cbe
commit 01f8f36e30
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
3 changed files with 4 additions and 7 deletions

1
deps/rapidjson vendored Submodule

@ -0,0 +1 @@
Subproject commit 00dbcf2c6e03c47d6c399338b6de060c71356464

View File

@ -1,4 +1,4 @@
@echo off
echo Updating submodules...
call git submodule update --init --recursive
call tools\premake5 %* vs2019
call tools\premake5 %* vs2019 --ac-disable

View File

@ -889,12 +889,8 @@ namespace Components
time(nullptr);
AntiCheat::Flags = NO_FLAG;
#ifdef DISABLE_ANTICHEAT
Command::Add("penis", [](Command::Params*)
{
AntiCheat::CrashClient();
});
#else
#ifndef DISABLE_ANTICHEAT
Utils::Hook(0x507BD5, AntiCheat::PatchWinAPI, HOOK_CALL).install()->quick();
Utils::Hook(0x5082FD, AntiCheat::LostD3DStub, HOOK_CALL).install()->quick();
Utils::Hook(0x51C76C, AntiCheat::CinematicStub, HOOK_CALL).install()->quick();