[AntiCheat] Make unreachable code useful again
This commit is contained in:
parent
2594f3fdf8
commit
93d02d6f56
@ -72,9 +72,7 @@ namespace Components
|
|||||||
Loader::Register(new Renderer());
|
Loader::Register(new Renderer());
|
||||||
Loader::Register(new UIFeeder());
|
Loader::Register(new UIFeeder());
|
||||||
Loader::Register(new UIScript());
|
Loader::Register(new UIScript());
|
||||||
#ifndef DISABLE_ANTICHEAT
|
|
||||||
Loader::Register(new AntiCheat());
|
Loader::Register(new AntiCheat());
|
||||||
#endif
|
|
||||||
Loader::Register(new Changelog());
|
Loader::Register(new Changelog());
|
||||||
Loader::Register(new Dedicated());
|
Loader::Register(new Dedicated());
|
||||||
Loader::Register(new Discovery());
|
Loader::Register(new Discovery());
|
||||||
|
@ -831,13 +831,12 @@ namespace Components
|
|||||||
time(nullptr);
|
time(nullptr);
|
||||||
AntiCheat::Flags = NO_FLAG;
|
AntiCheat::Flags = NO_FLAG;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DISABLE_ANTICHEAT
|
||||||
Command::Add("penis", [](Command::Params*)
|
Command::Add("penis", [](Command::Params*)
|
||||||
{
|
{
|
||||||
AntiCheat::CrashClient();
|
AntiCheat::CrashClient();
|
||||||
});
|
});
|
||||||
#else
|
#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();
|
||||||
@ -866,6 +865,8 @@ namespace Components
|
|||||||
|
|
||||||
// Set the integrity flag
|
// Set the integrity flag
|
||||||
AntiCheat::Flags |= AntiCheat::IntergrityFlag::INITIALIZATION;
|
AntiCheat::Flags |= AntiCheat::IntergrityFlag::INITIALIZATION;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__VMProtectEnd;
|
__VMProtectEnd;
|
||||||
|
Loading…
Reference in New Issue
Block a user