From dedd83c84dce784b052a90ad3f154ec8034d4a29 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:30:01 +0200 Subject: [PATCH] Patch is no longer needed This file has been moved over to the VPK, therefore, formatting will always be identical. --- src/common/opcodes.cpp | 4 ---- src/common/opcodes.h | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/src/common/opcodes.cpp b/src/common/opcodes.cpp index b37203a4..7f9e51d9 100644 --- a/src/common/opcodes.cpp +++ b/src/common/opcodes.cpp @@ -357,10 +357,6 @@ void RuntimePtc_Init() /* .TEXT */ //p_Detour_LevelInit.Offset(0x100).FindPatternSelf("74", CMemory::Direction::DOWN, 600).Patch({ 0xEB }); // JE --> JMP | Do while loop setting fields to -1 in navmesh is writing out of bounds (!TODO). #endif // !CLIENT_DLL #endif -#ifndef CLIENT_DLL - // !!!TODO!!! HACK: this needs to be removed asap! fix the entitlements file formatting on git itself. - Server_S2C_CONNECT_1.Offset(0x7).Patch({ 0xEB }); // JZ --> JMP | Prevent entitlement check to kick player from server on S2C_CONNECT Packet if it does not match the servers one. -#endif // !CLIENT_DLL vector starPakOpenFile = { 0x4D, 0x31, 0xC0, // xor, r8, r8 diff --git a/src/common/opcodes.h b/src/common/opcodes.h index c6e8126b..2943ef27 100644 --- a/src/common/opcodes.h +++ b/src/common/opcodes.h @@ -58,13 +58,6 @@ inline CMemory Host_Shutdown; //------------------------------------------------------------------------- inline CMemory Host_Disconnect; -//------------------------------------------------------------------------- -// RUNTIME: S2C_CHALLENGE -//------------------------------------------------------------------------- -#ifndef CLIENT_DLL -inline CMemory Server_S2C_CONNECT_1; -#endif // !CLIENT_DLL - //------------------------------------------------------------------------- // RUNTIME: //------------------------------------------------------------------------- @@ -88,9 +81,6 @@ class VOpcodes : public IDetour // LogFunAdr("Sys_InitGame", Sys_InitGame.GetPtr()); // LogFunAdr("Host_Init_1", gHost_Init_1.GetPtr()); // LogFunAdr("Host_Init_2", gHost_Init_2.GetPtr()); -#ifndef CLIENT_DLL - LogFunAdr("Server_S2C_CONNECT", Server_S2C_CONNECT_1.GetPtr()); -#endif // !CLIENT_DLL // LogFunAdr("GetEngineClientThread", GetEngineClientThread.GetPtr()); // LogFunAdr("MatchMaking_Frame", MatchMaking_Frame.GetPtr()); //#if !defined (GAMEDLL_S0) || !defined (GAMEDLL_S1) @@ -148,9 +138,6 @@ class VOpcodes : public IDetour // // 0x140236640 // 88 4C 24 08 53 55 56 57 48 83 EC 68 // // // //------------------------------------------------------------------------- -#ifndef CLIENT_DLL - Server_S2C_CONNECT_1 = g_GameDll.FindPatternSIMD("48 3B 05 ?? ?? ?? ?? 74 0C"); -#endif // !CLIENT_DLL // // //------------------------------------------------------------------------- //#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1)