mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 14:57:27 +08:00
refactor(RIDJoiner): Removed old class files
This commit is contained in:
parent
6f41ce2529
commit
f142f6ede8
@ -1,54 +0,0 @@
|
||||
#include "features/notify.hpp"
|
||||
#include "natives.hpp"
|
||||
#include "pointers.hpp"
|
||||
#include "rid_joiner.hpp"
|
||||
#include "script.hpp"
|
||||
#include "fiber_pool.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void rid_joiner::look_for_session()
|
||||
{
|
||||
if (this->awaiting_request)
|
||||
{
|
||||
features::notify::above_map("WAITING FOR GAME COORDINATOR");
|
||||
|
||||
if (this->type == 2 && !this->gs_info.empty())
|
||||
{
|
||||
handle_info();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void rid_joiner::handle_info()
|
||||
{
|
||||
this->awaiting_request = false;
|
||||
|
||||
join_rstar_id_request request;
|
||||
memset(&request, 0, sizeof(request));
|
||||
request.identifier.rockstar_id = g_pointers->m_rs_info->rockstar_id;
|
||||
request.identifier.type = 3;
|
||||
|
||||
features::notify::above_map("ATTEMPTING TO JOIN");
|
||||
|
||||
g_pointers->m_get_session_info_from_gs(&request.session_info, this->gs_info.c_str(), 0, 0);
|
||||
g_pointers->m_join_player_via_session_info(&request.identifier, &request.session_info, 0xA000);
|
||||
}
|
||||
|
||||
void rid_joiner::join_player(uint64_t rid)
|
||||
{
|
||||
this->awaiting_request = true;
|
||||
this->gs_info.clear();
|
||||
this->type = 2;
|
||||
this->rid = rid;
|
||||
|
||||
rockstar_identifier* identifier = new rockstar_identifier();
|
||||
identifier->rockstar_id = rid;
|
||||
identifier->type = 3;
|
||||
NETWORK::NETWORK_CLEAR_GET_GAMER_STATUS();
|
||||
|
||||
g_pointers->m_send_session_info_request(identifier, 1);
|
||||
|
||||
features::notify::above_map("Sent join request to join R* Id.");
|
||||
}
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
#pragma once
|
||||
#include "common.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
class rid_joiner
|
||||
{
|
||||
public:
|
||||
std::string gs_info;
|
||||
uint64_t rid;
|
||||
|
||||
void look_for_session();
|
||||
void handle_info();
|
||||
void join_player(uint64_t rid);
|
||||
private:
|
||||
bool awaiting_request = false;
|
||||
int type = 0;
|
||||
};
|
||||
|
||||
inline rid_joiner g_rid_joiner{};
|
||||
|
||||
struct rockstar_identifier {
|
||||
uint64_t rockstar_id;
|
||||
uint32_t type;
|
||||
uint32_t sub_type;
|
||||
};
|
||||
|
||||
struct gs_session {
|
||||
char _0x0000[0x8];
|
||||
uint64_t PeerToken;
|
||||
char _0x0010[0x38];
|
||||
uint64_t RockstarID;
|
||||
};
|
||||
|
||||
struct net_msg_identifier {
|
||||
uint64_t rockstar_id;
|
||||
uint8_t type;
|
||||
char _0x0009[0xB];
|
||||
};
|
||||
|
||||
struct rs_info {
|
||||
char scs_ticket[0x100];
|
||||
char _0x0100[0x190];
|
||||
uint64_t peer;
|
||||
char _0x0298[0xA7];
|
||||
char email[0x50];
|
||||
char _0x038f[0x20];
|
||||
char name[0x20];
|
||||
char _0x03cf[0x29];
|
||||
uint32_t rockstar_id;
|
||||
};
|
||||
|
||||
struct network_handle {
|
||||
int Handle;
|
||||
char _0x0[48];
|
||||
};
|
||||
|
||||
struct join_rstar_id_request {
|
||||
char _0x0000[0x8];
|
||||
gs_session session_info;
|
||||
net_msg_identifier identifier;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user