From d0bb7840cb95da20705eb5827051c86d8336beb6 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 14 May 2023 23:00:21 +0100 Subject: [PATCH] [General]: Remove broken patch (#1038) --- src/Components/Modules/Security.cpp | 7 ------- src/Components/Modules/Security.hpp | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/Components/Modules/Security.cpp b/src/Components/Modules/Security.cpp index 974849bb..240407db 100644 --- a/src/Components/Modules/Security.cpp +++ b/src/Components/Modules/Security.cpp @@ -29,12 +29,6 @@ namespace Components return size; } - int Security::SV_CanReplaceServerCommand_Hk([[maybe_unused]] Game::client_s* client, [[maybe_unused]] const char* cmd) - { - // This is a fix copied from V2. As I don't have time to investigate, let's simply trust them - return -1; - } - long Security::AtolAdjustPlayerLimit(const char* string) { return std::min(std::atol(string), 18); @@ -140,7 +134,6 @@ namespace Components // Exploit fixes Utils::Hook(0x414D92, Msg_ReadBitsCompressCheckSV, HOOK_CALL).install()->quick(); // SV_ExecuteClientCommands Utils::Hook(0x4A9F56, Msg_ReadBitsCompressCheckCL, HOOK_CALL).install()->quick(); // CL_ParseServerMessage - Utils::Hook(0x407376, SV_CanReplaceServerCommand_Hk, HOOK_CALL).install()->quick(); // SV_CanReplaceServerCommand Utils::Hook::Set(0x412370, 0xC3); // SV_SteamAuthClient Utils::Hook::Set(0x5A8C70, 0xC3); // CL_HandleRelayPacket diff --git a/src/Components/Modules/Security.hpp b/src/Components/Modules/Security.hpp index 1dcb5227..861a7ad2 100644 --- a/src/Components/Modules/Security.hpp +++ b/src/Components/Modules/Security.hpp @@ -11,8 +11,6 @@ namespace Components static int Msg_ReadBitsCompressCheckCL(const unsigned char* from, unsigned char* to, int size); private: - static int SV_CanReplaceServerCommand_Hk(Game::client_s* client, const char* cmd); - static long AtolAdjustPlayerLimit(const char* string); static void SelectStringTableEntryInDvar_Stub();