Skip to content

Commit

Permalink
Minor changes (#121)
Browse files Browse the repository at this point in the history
* Update rlQueryPresenceAttributesContext.hpp

* Update rlScHandle.hpp
  • Loading branch information
maybegreat48 authored Jul 15, 2023
1 parent 8a615ad commit 95dadd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions rage/rlQueryPresenceAttributesContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
14 changes: 7 additions & 7 deletions rage/rlScHandle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 95dadd6

Please sign in to comment.