Revert shit

This commit is contained in:
momo5502 2016-03-11 21:53:23 +01:00
parent 3db0667929
commit ddfd65cad4
4 changed files with 3 additions and 6 deletions

2
deps/protobuf vendored

@ -1 +1 @@
Subproject commit 48ebb29a8ec118bf6b9ee39f6be42b57321c099a Subproject commit dfaf1aac309c1b65679bb28fb593303ae3e8d170

View File

@ -5,7 +5,6 @@ namespace Components
int AntiCheat::LastCheck; int AntiCheat::LastCheck;
std::string AntiCheat::Hash; std::string AntiCheat::Hash;
Utils::Hook AntiCheat::LoadLibHook[4]; Utils::Hook AntiCheat::LoadLibHook[4];
bool AntiCheat::InjectPatches = false;
// This function does nothing, it only adds the two passed variables and returns the value // 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 // The only important thing it does is to clean the first parameter, and then return
@ -150,7 +149,6 @@ namespace Components
AntiCheat::AntiCheat() AntiCheat::AntiCheat()
{ {
AntiCheat::InjectPatches = false;
AntiCheat::EmptyHash(); AntiCheat::EmptyHash();
#ifdef DEBUG #ifdef DEBUG

View File

@ -23,6 +23,5 @@ namespace Components
static void NullSub(); static void NullSub();
static Utils::Hook LoadLibHook[4]; static Utils::Hook LoadLibHook[4];
static bool InjectPatches;
}; };
} }

View File

@ -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); 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 #else
/*Utils::Hook::Set(0x6D70AC, Exception::SetUnhandledExceptionFilterStub); Utils::Hook::Set(0x6D70AC, Exception::SetUnhandledExceptionFilterStub);
SetUnhandledExceptionFilter(&Exception::ExceptionFilter);*/ SetUnhandledExceptionFilter(&Exception::ExceptionFilter);
#endif #endif
Command::Add("mapTest", [] (Command::Params params) Command::Add("mapTest", [] (Command::Params params)