account: add code to satisfy multiple accounts (#97)

* add code to satisfy multiple accounts
This commit is contained in:
Jeremy S. Postelnek 2022-04-09 16:17:54 -04:00 committed by GitHub
parent 950e99a1ab
commit b55cb17676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,17 @@ int main(int argc, char **argv)
rc = accountGetPreselectedUser(&userID); rc = accountGetPreselectedUser(&userID);
if (R_FAILED(rc)) { if (R_FAILED(rc)) {
printf("accountGetPreselectedUser() failed: 0x%x\n", rc); printf("accountGetPreselectedUser() failed: 0x%x, using pselShowUserSelector..\n", rc);
/* Create player selection UI settings */
PselUserSelectionSettings settings;
memset(&settings, 0, sizeof(settings));
rc = pselShowUserSelector(&userID, &settings);
if (R_FAILED(rc)) {
printf("pselShowUserSelector() failed: 0x%x\n", rc);
}
} }
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {