feat(Pointers): Added FriendRegistry

This commit is contained in:
Yimura 2022-02-18 17:44:32 +01:00
parent 0898dbe2ff
commit accabcdfa1
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,4 @@
#include "common.hpp"
#include "logger.hpp"
#include "pointers.hpp"
#include "memory/all.hpp"
@ -233,6 +232,11 @@ namespace big
{
m_network_player_mgr_shutdown = ptr.sub(0x17).as<PVOID>();
});
main_batch.add("FR", "3B 0D ? ? ? ? 73 13 48 63 C9", [this](memory::handle ptr)
{
m_friend_registry = ptr.add(2).rip().as<FriendRegistry*>();
});
main_batch.run(memory::module(nullptr));

View File

@ -1,6 +1,7 @@
#pragma once
#include "common.hpp"
#include "CNetworkPlayerMgr.hpp"
#include "FriendRegistry.hpp"
#include "gta/fwddec.hpp"
#include "gta/enums.hpp"
#include "gta/replay.hpp"
@ -47,6 +48,8 @@ namespace big
PVOID m_error_screen{};
FriendRegistry* m_friend_registry{};
functions::get_net_game_player* m_get_net_game_player{};
PVOID m_gta_thread_start{};