Print errors in connect stub
This commit is contained in:
parent
be0b8fbf17
commit
a44675aa68
@ -108,6 +108,8 @@ namespace auth
|
||||
}
|
||||
|
||||
int send_connect_data_stub(const game::netsrc_t sock, game::netadr_t* adr, const char* data, int len)
|
||||
{
|
||||
try
|
||||
{
|
||||
std::string buffer{};
|
||||
|
||||
@ -124,6 +126,13 @@ namespace auth
|
||||
|
||||
return reinterpret_cast<decltype(&send_connect_data_stub)>(0x142173600_g)(sock, adr, data, len);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
printf("Error: %s\n", e.what());
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void handle_connect_packet(const game::netadr_t& target, const network::data_view& data)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user