Merge pull request #116 from diamante0018/no-anti-cheat
Disable anticheatby default
This commit is contained in:
commit
14dc718ef2
@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
echo Updating submodules...
|
echo Updating submodules...
|
||||||
call git submodule update --init --recursive
|
call git submodule update --init --recursive
|
||||||
call tools\premake5 %* vs2019
|
call tools\premake5 %* vs2019 --ac-disable
|
||||||
|
@ -889,12 +889,8 @@ namespace Components
|
|||||||
time(nullptr);
|
time(nullptr);
|
||||||
AntiCheat::Flags = NO_FLAG;
|
AntiCheat::Flags = NO_FLAG;
|
||||||
|
|
||||||
#ifdef DISABLE_ANTICHEAT
|
#ifndef DISABLE_ANTICHEAT
|
||||||
Command::Add("penis", [](Command::Params*)
|
|
||||||
{
|
|
||||||
AntiCheat::CrashClient();
|
|
||||||
});
|
|
||||||
#else
|
|
||||||
Utils::Hook(0x507BD5, AntiCheat::PatchWinAPI, HOOK_CALL).install()->quick();
|
Utils::Hook(0x507BD5, AntiCheat::PatchWinAPI, HOOK_CALL).install()->quick();
|
||||||
Utils::Hook(0x5082FD, AntiCheat::LostD3DStub, HOOK_CALL).install()->quick();
|
Utils::Hook(0x5082FD, AntiCheat::LostD3DStub, HOOK_CALL).install()->quick();
|
||||||
Utils::Hook(0x51C76C, AntiCheat::CinematicStub, HOOK_CALL).install()->quick();
|
Utils::Hook(0x51C76C, AntiCheat::CinematicStub, HOOK_CALL).install()->quick();
|
||||||
|
Loading…
Reference in New Issue
Block a user