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();