|
ReXGlue SDK
|
#include <rex/xam/user_profile.h>
Classes | |
| union | Key |
Public Types | |
| enum class | Type : u8 { kContext = 0 , kInt32 = 1 , kInt64 = 2 , kDouble = 3 , kUnicode = 4 , kFloat = 5 , kBinary = 6 , kDateTime = 7 , kUnset = 0xFF } |
Public Member Functions | |
| Setting (u32 setting_id, Type type, size_t size, bool is_set) | |
| virtual void | WriteTo (X_USER_PROFILE_SETTING_DATA *data, SettingByteStream *stream) |
| virtual std::vector< u8 > | Serialize () const |
| virtual void | Deserialize (const std::vector< u8 > &) |
| bool | IsTitleSpecific () const |
Public Attributes | |
| u32 | setting_id |
| Type | type |
| size_t | size |
| bool | is_set |
| u32 | loaded_title_id |
A profile setting identified by ID, which can write itself into a guest value.
|
strong |
Value type of a setting, matching the XUSER_DATA type byte.
|
inline |
| is_set | True when the setting holds a value. |
|
inlinevirtual |
Restores the value from bytes saved to disk.
Reimplemented in rex::xam::UserProfile::BinarySetting.
|
inline |
Reports whether the setting is saved per title.
|
inlinevirtual |
Returns the bytes saved to disk for a title specific setting.
Reimplemented in rex::xam::UserProfile::BinarySetting.
|
inlinevirtual |
Writes the setting into a guest value.
| data | The guest value to fill. |
| stream | The stream that receives variable length data. |
Reimplemented in rex::xam::UserProfile::BinarySetting, rex::xam::UserProfile::DateTimeSetting, rex::xam::UserProfile::DoubleSetting, rex::xam::UserProfile::FloatSetting, rex::xam::UserProfile::Int32Setting, rex::xam::UserProfile::Int64Setting, and rex::xam::UserProfile::UnicodeSetting.
| u32 rex::xam::UserProfile::Setting::loaded_title_id |
ID of the title whose saved value was loaded, 0 when none.