From 01f8f36e30b8914af6bd89b55729acfd3ff09c8d Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sat, 28 Aug 2021 22:33:14 +0200 Subject: [PATCH 1/2] Disable anticheat for good --- deps/rapidjson | 1 + generate.bat | 2 +- src/Components/Modules/AntiCheat.cpp | 8 ++------ 3 files changed, 4 insertions(+), 7 deletions(-) create mode 160000 deps/rapidjson diff --git a/deps/rapidjson b/deps/rapidjson new file mode 160000 index 00000000..00dbcf2c --- /dev/null +++ b/deps/rapidjson @@ -0,0 +1 @@ +Subproject commit 00dbcf2c6e03c47d6c399338b6de060c71356464 diff --git a/generate.bat b/generate.bat index 65a3b206..f00a84e9 100644 --- a/generate.bat +++ b/generate.bat @@ -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 diff --git a/src/Components/Modules/AntiCheat.cpp b/src/Components/Modules/AntiCheat.cpp index d20b1925..af7b678d 100644 --- a/src/Components/Modules/AntiCheat.cpp +++ b/src/Components/Modules/AntiCheat.cpp @@ -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(); From 99db8db0f2855e177dcbf890810c2b46d73176ae Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sat, 28 Aug 2021 22:53:06 +0200 Subject: [PATCH 2/2] Attempt to remove dep --- deps/rapidjson | 1 - 1 file changed, 1 deletion(-) delete mode 160000 deps/rapidjson diff --git a/deps/rapidjson b/deps/rapidjson deleted file mode 160000 index 00dbcf2c..00000000 --- a/deps/rapidjson +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 00dbcf2c6e03c47d6c399338b6de060c71356464