2022-11-24 21:49:05 +00:00
|
|
|
#include "hooking.hpp"
|
|
|
|
#include "gta_util.hpp"
|
|
|
|
#include <network/Network.hpp>
|
|
|
|
#include <network/RemoteGamerInfoMsg.hpp>
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
bool hooks::serialize_join_request_message(RemoteGamerInfoMsg* info, void* data, int size, int* bits_serialized)
|
|
|
|
{
|
2022-12-06 16:12:02 +00:00
|
|
|
if (info->unk_0xC0 == 0)
|
|
|
|
info->unk_0xC0 = 1;
|
2022-11-24 21:49:05 +00:00
|
|
|
|
2022-12-06 16:12:02 +00:00
|
|
|
info->m_num_handles = 0;
|
2022-11-24 21:49:05 +00:00
|
|
|
return g_hooking->get_original<hooks::serialize_join_request_message>()(info, data, size, bits_serialized);
|
|
|
|
}
|
|
|
|
}
|