This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/hooks/misc/serialize_join_request_message.cpp

17 lines
447 B
C++
Raw Normal View History

2022-11-24 21:49:05 +00:00
#include "gta_util.hpp"
#include "hooking.hpp"
2022-11-24 21:49:05 +00:00
#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);
}
}