ReXGlue SDK
Loading...
Searching...
No Matches
rex::xam::UserProfile Class Reference

Classes

class  SettingByteStream
struct  Setting
struct  Int32Setting
struct  Int64Setting
struct  DoubleSetting
struct  UnicodeSetting
struct  FloatSetting
struct  BinarySetting
struct  DateTimeSetting

Public Member Functions

void SetContentManager (IContentManager &content, rex::MoveOnlyFunction< u32()> title_id)
u64 GetXUID () const
std::string GetName () const
u32 GetSigninState () const
u32 GetType () const
REX_XAM_API void AddSetting (std::unique_ptr< Setting > setting)
REX_XAM_API Setting * GetSetting (u32 setting_id)

Member Function Documentation

◆ AddSetting()

REX_XAM_API void rex::xam::UserProfile::AddSetting ( std::unique_ptr< Setting > setting)

Adds a setting, replacing any with the same ID. A title specific setting is saved to disk when added.

Parameters
settingThe setting, owned by the profile afterwards.

◆ GetSetting()

REX_XAM_API Setting * rex::xam::UserProfile::GetSetting ( u32 setting_id)

Returns a setting, loading a title specific one from disk if the title has not loaded it, null when the ID is unknown.

◆ GetSigninState()

u32 rex::xam::UserProfile::GetSigninState ( ) const
inline
Returns
Always 1.

◆ GetType()

u32 rex::xam::UserProfile::GetType ( ) const
inline

Returns the profile type bits that the XUID query matches against its type mask. It is always 3.

◆ SetContentManager()

void rex::xam::UserProfile::SetContentManager ( IContentManager & content,
rex::MoveOnlyFunction< u32()> title_id )
inline

Sets the content manager that locates the title specific settings.

Parameters
contentThe content manager, which outlives the profile.
title_idReturns the title ID of the executable.

The documentation for this class was generated from the following file: