fix: update to gta version 2845 (#1032)

This commit is contained in:
Johann 2023-02-28 19:45:55 +01:00 committed by GitHub
parent 6124249601
commit 92aea20cd6
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"game": {
"online": "1.66",
"build": "2824"
"build": "2845"
}
}

View File

@ -167,7 +167,7 @@ namespace big
});
// Read Bitbuffer Boolean
main_batch.add("RBB", "E8 ? ? ? ? 84 C0 74 2D 48 8D 57 20", [this](memory::handle ptr)
main_batch.add("RBB", "E8 ? ? ? ? 84 C0 74 41 48 8D 56 2C", [this](memory::handle ptr)
{
m_read_bitbuf_bool = ptr.add(1).rip().as<decltype(m_read_bitbuf_bool)>();
});
@ -419,13 +419,13 @@ namespace big
});
// Send Chat Ptr
main_batch.add("SCP", "41 83 7F ? ? 4C 8B 35", [this](memory::handle ptr)
main_batch.add("SCP", "83 7E 1C 01 48 8B 3D", [this](memory::handle ptr)
{
m_send_chat_ptr = ptr.add(8).rip().as<int64_t**>();
m_send_chat_ptr = ptr.add(7).rip().as<int64_t**>();
});
// Send Chat Message
main_batch.add("SCM", "48 83 EC 20 48 8B F9 48 8B CA 45 8A F1", [this](memory::handle ptr)
main_batch.add("SCM", "48 83 EC 20 48 8B F1 48 8B CA 41 8A E9", [this](memory::handle ptr)
{
m_send_chat_message = ptr.sub(21).as<functions::send_chat_message>();
});
@ -514,8 +514,8 @@ namespace big
m_handle_join_request = ptr.as<PVOID>();
});
// Handle Join Request
main_batch.add("HJR", "E8 ?? ?? ?? ?? 41 8B DF 84 C0 74 06", [this](memory::handle ptr)
// Write Join Response Data
main_batch.add("WJRD", "E8 ?? ?? ?? ?? 41 8B DF 84 C0", [this](memory::handle ptr)
{
m_write_join_response_data = ptr.add(1).rip().as<functions::write_join_response_data>();
});

View File

@ -5,7 +5,7 @@ namespace big
class matchmaking_service
{
public:
constexpr static int MAX_SESSIONS_TO_FIND = 1057;
constexpr static int MAX_SESSIONS_TO_FIND = 1054;
struct session_attributes
{