Minor changes (#121)

* Update rlQueryPresenceAttributesContext.hpp

* Update rlScHandle.hpp
This commit is contained in:
maybegreat48 2023-07-15 18:46:17 +00:00 committed by GitHub
parent a7eee8d5cc
commit 8559fe7a9e
2 changed files with 13 additions and 9 deletions

View File

@ -7,9 +7,13 @@ namespace rage
{
public:
char m_presence_attribute_key[64]; //0x0000
char m_presence_attribute_value[256]; //0x0040
union
{
char m_presence_attribute_string_value[256]; //0x0040
uint64_t m_presence_attribute_int_value;
};
uint32_t m_presence_attibute_type; //0x0140
char pad_0144[4]; //0x0144
}; //Size: 0x0148
static_assert(sizeof(rage::rlQueryPresenceAttributesContext) == 0x148);
}
}

View File

@ -4,24 +4,24 @@
namespace rage
{
#pragma pack(push,8)
#pragma pack(push, 8)
class rlScHandle
{
public:
uint64_t m_rockstar_id; //0x0000
char m_pad[2];
int16_t unk_0008;
uint8_t m_platform; //0x000A
uint8_t unk_0009; //0x000B
char pad[5]{}; //0x000B
inline rlScHandle() = default;
inline rlScHandle(uint64_t rockstar_id) :
m_rockstar_id(rockstar_id),
m_platform(3),
unk_0009(0)
m_rockstar_id(rockstar_id),
m_platform(3),
unk_0008(0)
{
}
}; //Size: 0x0010
static_assert(sizeof(rlScHandle) == 0x10);
#pragma pack(pop)
}
}