From 1ae4cf0d86f5eada30ac618f8f35d239e6099194 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Mon, 10 Apr 2023 17:43:36 +0200 Subject: [PATCH] Don't send profile infos Temporary workaround for #480 --- src/client/component/auth.cpp | 5 ++++- src/client/component/network.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/component/auth.cpp b/src/client/component/auth.cpp index 6d5ad34d..9ec2a241 100644 --- a/src/client/component/auth.cpp +++ b/src/client/component/auth.cpp @@ -100,7 +100,10 @@ namespace auth std::string serialize_connect_data(const char* data, const int length) { utils::byte_buffer buffer{}; - profile_infos::get_profile_info().value_or(profile_infos::profile_info{}).serialize(buffer); + profile_infos::profile_info info{}; + info.version = 4; // invalid + info.serialize(buffer); + //profile_infos::get_profile_info().value_or(profile_infos::profile_info{}).serialize(buffer); buffer.write_string(data, static_cast(length)); diff --git a/src/client/component/network.cpp b/src/client/component/network.cpp index da384f16..7abe2663 100644 --- a/src/client/component/network.cpp +++ b/src/client/component/network.cpp @@ -301,7 +301,7 @@ namespace network utils::hook::set(game::select(0x14233249E, 0x140596F2E), 0); // don't add checksum to packet // Recreate NET_SendPacket to increase max packet size - utils::hook::jump(game::select(0x1423323B0, 0x140596E40), net_sendpacket_stub); + //utils::hook::jump(game::select(0x1423323B0, 0x140596E40), net_sendpacket_stub); utils::hook::set(game::select(0x14134C6E0, 0x14018E574), 5); // set initial connection state to challenging