From e6ed285ae9169eb809de239c7edc58e4da6308b7 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 12 Jan 2017 19:29:27 +0100 Subject: [PATCH] [QuickPatch] Fix relay crash (we don't need it, so nopping it is fine) --- src/Components/Modules/QuickPatch.cpp | 10 +--------- src/Components/Modules/QuickPatch.hpp | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index 7c057c0a..56b1e191 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -112,14 +112,6 @@ namespace Components return size; } - void QuickPatch::CL_HandleRelayPacketCheck(Game::msg_t* msg, int client) - { - if (Command::ClientParams().length() >= 3) - { - Game::CL_HandleRelayPacket(msg, client); - } - } - void QuickPatch::SelectStringTableEntryInDvarStub() { Command::ClientParams args; @@ -429,9 +421,9 @@ namespace Components // Exploit fixes Utils::Hook::Set(0x412370, 0xC3); // SV_SteamAuthClient + Utils::Hook::Set(0x5A8C70, 0xC3); // CL_HandleRelayPacket Utils::Hook(0x414D92, QuickPatch::MsgReadBitsCompressCheckSV, HOOK_CALL).install()->quick(); // SV_ExecuteClientCommands Utils::Hook(0x4A9F56, QuickPatch::MsgReadBitsCompressCheckCL, HOOK_CALL).install()->quick(); // CL_ParseServerMessage - Utils::Hook(0x5AA009, QuickPatch::CL_HandleRelayPacketCheck, HOOK_CALL).install()->quick(); // CL_HandleRelayPacket // Patch selectStringTableEntryInDvar Utils::Hook::Set(0x405959, QuickPatch::SelectStringTableEntryInDvarStub); diff --git a/src/Components/Modules/QuickPatch.hpp b/src/Components/Modules/QuickPatch.hpp index a0c64630..0ce4ded0 100644 --- a/src/Components/Modules/QuickPatch.hpp +++ b/src/Components/Modules/QuickPatch.hpp @@ -30,7 +30,6 @@ namespace Components static int MsgReadBitsCompressCheckSV(const char *from, char *to, int size); static int MsgReadBitsCompressCheckCL(const char *from, char *to, int size); - static void CL_HandleRelayPacketCheck(Game::msg_t* msg, int client); static void CompareMaterialStateBits();