Skip to content

Commit b55cb17

Browse files
authored
account: add code to satisfy multiple accounts (#97)
* add code to satisfy multiple accounts
1 parent 950e99a commit b55cb17

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

account/source/main.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ int main(int argc, char **argv)
3737
rc = accountGetPreselectedUser(&userID);
3838

3939
if (R_FAILED(rc)) {
40-
printf("accountGetPreselectedUser() failed: 0x%x\n", rc);
40+
printf("accountGetPreselectedUser() failed: 0x%x, using pselShowUserSelector..\n", rc);
41+
42+
/* Create player selection UI settings */
43+
PselUserSelectionSettings settings;
44+
memset(&settings, 0, sizeof(settings));
45+
46+
rc = pselShowUserSelector(&userID, &settings);
47+
48+
if (R_FAILED(rc)) {
49+
printf("pselShowUserSelector() failed: 0x%x\n", rc);
50+
}
4151
}
4252

4353
if (R_SUCCEEDED(rc)) {

0 commit comments

Comments
 (0)