Revert "Temporarily diable new protocol to merge changes"

This reverts commit 6d0d3510646121acf41f3164e283b60201fa2d81.
This commit is contained in:
momo5502 2023-04-07 14:51:16 +02:00
parent 48b5ad815f
commit 4661b26127
2 changed files with 4 additions and 6 deletions

View File

@ -172,9 +172,8 @@ namespace auth
void post_unpack() override
{
// Skip connect handler
//utils::hook::set<uint8_t>(game::select(0x142253EFA, 0x14053714A), 0xEB);
//network::on("connect", handle_connect_packet);
(void)&handle_connect_packet;
utils::hook::set<uint8_t>(game::select(0x142253EFA, 0x14053714A), 0xEB);
network::on("connect", handle_connect_packet);
// Patch steam id bit check
std::vector<std::pair<size_t, size_t>> patches{};
@ -221,8 +220,7 @@ namespace auth
p(0x141EB5992_g, 0x141EB59D5_g);
p(0x141EB74D2_g, 0x141EB7515_g); // ?
//utils::hook::call(0x14134BF7D_g, send_connect_data_stub);
(void)&send_connect_data_stub;
utils::hook::call(0x14134BF7D_g, send_connect_data_stub);
}
for (const auto& patch : patches)

View File

@ -1,6 +1,6 @@
#pragma once
#define PROTOCOL 1
#define PROTOCOL 2
#ifdef __cplusplus
namespace game