From ddfd65cad418dc4febe794ca0cf6e85d6fd5e419 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 11 Mar 2016 21:53:23 +0100 Subject: [PATCH] Revert shit --- deps/protobuf | 2 +- src/Components/Modules/AntiCheat.cpp | 2 -- src/Components/Modules/AntiCheat.hpp | 1 - src/Components/Modules/Exception.cpp | 4 ++-- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/deps/protobuf b/deps/protobuf index 48ebb29a..dfaf1aac 160000 --- a/deps/protobuf +++ b/deps/protobuf @@ -1 +1 @@ -Subproject commit 48ebb29a8ec118bf6b9ee39f6be42b57321c099a +Subproject commit dfaf1aac309c1b65679bb28fb593303ae3e8d170 diff --git a/src/Components/Modules/AntiCheat.cpp b/src/Components/Modules/AntiCheat.cpp index 49aa2eb9..0132d4ac 100644 --- a/src/Components/Modules/AntiCheat.cpp +++ b/src/Components/Modules/AntiCheat.cpp @@ -5,7 +5,6 @@ namespace Components int AntiCheat::LastCheck; std::string AntiCheat::Hash; Utils::Hook AntiCheat::LoadLibHook[4]; - bool AntiCheat::InjectPatches = false; // This function does nothing, it only adds the two passed variables and returns the value // The only important thing it does is to clean the first parameter, and then return @@ -150,7 +149,6 @@ namespace Components AntiCheat::AntiCheat() { - AntiCheat::InjectPatches = false; AntiCheat::EmptyHash(); #ifdef DEBUG diff --git a/src/Components/Modules/AntiCheat.hpp b/src/Components/Modules/AntiCheat.hpp index a3b23fd4..ee869575 100644 --- a/src/Components/Modules/AntiCheat.hpp +++ b/src/Components/Modules/AntiCheat.hpp @@ -23,6 +23,5 @@ namespace Components static void NullSub(); static Utils::Hook LoadLibHook[4]; - static bool InjectPatches; }; } diff --git a/src/Components/Modules/Exception.cpp b/src/Components/Modules/Exception.cpp index 1364351f..f8f076a5 100644 --- a/src/Components/Modules/Exception.cpp +++ b/src/Components/Modules/Exception.cpp @@ -67,8 +67,8 @@ namespace Components Game::R_AddCmdDrawText("DEBUG-BUILD", 0x7FFFFFFF, font, 15.0f, 10.0f + Game::R_TextHeight(font), 1.0f, 1.0f, 0.0f, color, Game::ITEM_TEXTSTYLE_SHADOWED); }); #else - /*Utils::Hook::Set(0x6D70AC, Exception::SetUnhandledExceptionFilterStub); - SetUnhandledExceptionFilter(&Exception::ExceptionFilter);*/ + Utils::Hook::Set(0x6D70AC, Exception::SetUnhandledExceptionFilterStub); + SetUnhandledExceptionFilter(&Exception::ExceptionFilter); #endif Command::Add("mapTest", [] (Command::Params params)