mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 13:22:40 +02:00
address pr comment
This commit is contained in:
parent
cc82e02d45
commit
b3a6e85d2d
@ -40,17 +40,13 @@ int main(int argc, char **argv)
|
||||
printf("accountGetPreselectedUser() failed: 0x%x, using pselUi..\n", rc);
|
||||
|
||||
/* Create player selection UI settings */
|
||||
PselUiSettings settings;
|
||||
rc = pselUiCreate(&settings, PselUiMode_UserSelector);
|
||||
PselUserSelectionSettings settings;
|
||||
memset(&settings, 0, sizeof(settings));
|
||||
|
||||
rc = pselShowUserSelector(&userID, &settings);
|
||||
|
||||
if (R_FAILED(rc)) {
|
||||
printf("pselUiCreate() failed: 0x%x\n", rc);
|
||||
} else {
|
||||
/* Ask for a user account */
|
||||
rc = pselUiShow(&settings, &userID);
|
||||
if (R_FAILED(rc)) {
|
||||
printf("pselUiShow() failed: 0x%x\n", rc);
|
||||
}
|
||||
printf("pselShowUserSelector() failed: 0x%x\n", rc);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user