From a28235df267f7c379129344e5b8a6d413750237f Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 7 Apr 2023 14:37:34 +0200 Subject: [PATCH] Temporarily diable new protocol to merge changes --- src/client/component/auth.cpp | 8 +++++--- src/client/game/structs.hpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/client/component/auth.cpp b/src/client/component/auth.cpp index d5e2d4f6..45405af4 100644 --- a/src/client/component/auth.cpp +++ b/src/client/component/auth.cpp @@ -172,8 +172,9 @@ namespace auth void post_unpack() override { // Skip connect handler - utils::hook::set(game::select(0x142253EFA, 0x14053714A), 0xEB); - network::on("connect", handle_connect_packet); + //utils::hook::set(game::select(0x142253EFA, 0x14053714A), 0xEB); + //network::on("connect", handle_connect_packet); + (void)&handle_connect_packet; // Patch steam id bit check std::vector> patches{}; @@ -220,7 +221,8 @@ namespace auth p(0x141EB5992_g, 0x141EB59D5_g); p(0x141EB74D2_g, 0x141EB7515_g); // ? - utils::hook::call(0x14134BF7D_g, send_connect_data_stub); + //utils::hook::call(0x14134BF7D_g, send_connect_data_stub); + (void)&send_connect_data_stub; } for (const auto& patch : patches) diff --git a/src/client/game/structs.hpp b/src/client/game/structs.hpp index 1e852b6c..a54fddbf 100644 --- a/src/client/game/structs.hpp +++ b/src/client/game/structs.hpp @@ -1,6 +1,6 @@ #pragma once -#define PROTOCOL 2 +#define PROTOCOL 1 #ifdef __cplusplus namespace game