libnx
v4.7.0
|
Wrapper for using the playerSelect (user selection) LibraryApplet. More...
Go to the source code of this file.
Data Structures | |
struct | PselUiSettingsV1 |
Base UI settings for playerSelect. More... | |
struct | PselUiSettings |
UI settings for versions starting with 0x10000. More... | |
struct | PselUserSelectionSettings |
UserSelectionSettings. More... | |
struct | PselUserSelectionSettingsForSystemService |
[2.0.0+] UserSelectionSettingsForSystemService More... | |
struct | PselUiReturnArg |
Return data sent after execution. More... | |
Functions | |
Result | pselUiCreate (PselUiSettings *ui, PselUiMode mode) |
Creates a new UI config for the playerSelect applet with the specified mode. More... | |
void | pselUiAddUser (PselUiSettings *ui, AccountUid user_id) |
Adds an user to the user list of the applet. More... | |
static void | pselUiSetAllowUserCreation (PselUiSettings *ui, bool flag) |
Sets whether users can be created in the applet. More... | |
static void | pselUiSetNetworkServiceRequired (PselUiSettings *ui, bool flag) |
Sets whether users need to be linked to a Nintendo account. More... | |
static void | pselUiSetSkipButtonEnabled (PselUiSettings *ui, bool flag) |
Sets whether selection can be skipped with a button. More... | |
Result | pselUiShow (PselUiSettings *ui, AccountUid *out_user) |
Shows the applet with the specified UI settings. More... | |
Result | pselShowUserSelectorForSystem (AccountUid *out_user, const PselUserSelectionSettings *settings, const PselUserSelectionSettingsForSystemService *settings_system) |
This is the System version of pselShowUserSelector. More... | |
Result | pselShowUserSelectorForLauncher (AccountUid *out_user, const PselUserSelectionSettings *settings, u64 application_id) |
This is the Launcher version of pselShowUserSelector. More... | |
Result | pselShowUserSelector (AccountUid *out_user, const PselUserSelectionSettings *settings) |
Shows the applet to select a user. More... | |
Result | pselShowUserCreator (void) |
Shows the applet to create a user. More... | |
Result | pselShowUserIconEditor (AccountUid user) |
Shows the applet to change a user's icon. More... | |
Result | pselShowUserNicknameEditor (AccountUid user) |
Shows the applet to change a user's nickname. More... | |
Result | pselShowUserCreatorForStarter (void) |
Shows the applet to create a user. More... | |
Result | pselShowNintendoAccountNnidLinker (AccountUid user) |
Shows the applet for Nintendo Account Nnid linking. More... | |
Result | pselShowUserQualificationPromoter (AccountUid user) |
Shows the applet for UserQualificationPromoter. More... | |
Wrapper for using the playerSelect (user selection) LibraryApplet.
enum PselUiMode |
playerSelect UI modes.
UI message text to display with PselUiMode_UserSelector. Invalid values are handled as PselUserSelectionPurpose_General.
Result pselShowNintendoAccountNnidLinker | ( | AccountUid | user | ) |
Shows the applet for Nintendo Account Nnid linking.
[in] | user | Input user ID. |
Result pselShowUserCreator | ( | void | ) |
Shows the applet to create a user.
Result pselShowUserCreatorForStarter | ( | void | ) |
Shows the applet to create a user.
Used by the starter applet during system setup.
Result pselShowUserIconEditor | ( | AccountUid | user | ) |
Shows the applet to change a user's icon.
[in] | user | Input user ID. |
Result pselShowUserNicknameEditor | ( | AccountUid | user | ) |
Shows the applet to change a user's nickname.
[in] | user | Input user ID. |
Result pselShowUserQualificationPromoter | ( | AccountUid | user | ) |
Shows the applet for UserQualificationPromoter.
[in] | user | Input user ID. |
Result pselShowUserSelector | ( | AccountUid * | out_user, |
const PselUserSelectionSettings * | settings | ||
) |
Shows the applet to select a user.
[out] | out_user | Returned selected user ID. |
[in] | settings | PselUserSelectionSettings |
Result pselShowUserSelectorForLauncher | ( | AccountUid * | out_user, |
const PselUserSelectionSettings * | settings, | ||
u64 | application_id | ||
) |
This is the Launcher version of pselShowUserSelector.
[out] | out_user | Returned selected user ID. |
[in] | settings | PselUserSelectionSettings |
[in] | application_id | ApplicationId |
Result pselShowUserSelectorForSystem | ( | AccountUid * | out_user, |
const PselUserSelectionSettings * | settings, | ||
const PselUserSelectionSettingsForSystemService * | settings_system | ||
) |
This is the System version of pselShowUserSelector.
[out] | out_user | Returned selected user ID. |
[in] | settings | PselUserSelectionSettings |
[in] | settings_system | [2.0.0+] PselUserSelectionSettingsForSystemService, ignored on prior versions. |
void pselUiAddUser | ( | PselUiSettings * | ui, |
AccountUid | user_id | ||
) |
Adds an user to the user list of the applet.
ui | PselUiSettings struct. | |
[in] | user_id | user ID. |
Result pselUiCreate | ( | PselUiSettings * | ui, |
PselUiMode | mode | ||
) |
Creates a new UI config for the playerSelect applet with the specified mode.
ui | PseluiSettings struct. |
mode | playerSelect UI mode. |
|
inlinestatic |
Sets whether users can be created in the applet.
ui | PselUiSettings struct. |
flag | Flag value. |
|
inlinestatic |
Sets whether users need to be linked to a Nintendo account.
ui | PselUiSettings struct. |
flag | Flag value. |
|
inlinestatic |
Sets whether selection can be skipped with a button.
ui | PselUiSettings struct. |
flag | Flag value. |
Result pselUiShow | ( | PselUiSettings * | ui, |
AccountUid * | out_user | ||
) |
Shows the applet with the specified UI settings.
ui | PselUiSettings struct. |
out_user | Selected user ID. |