Skip to content

account: add code to satisfy multiple accounts #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 9, 2022

Conversation

TurtleP
Copy link
Contributor

@TurtleP TurtleP commented Apr 9, 2022

Summary
This pull request adds support for multiple account handling in the account example.

Validation
I ran this using title takeover on:

  • Snipperclips (Demo). The account example will ask on boot for the user to be selected.
  • Animal Crossing: New Horizons. This game asks for the user on boot, and upon loading the example, it will grab the pre-selected user.

printf("accountGetPreselectedUser() failed: 0x%x, using pselUi..\n", rc);

/* Create player selection UI settings */
PselUiSettings settings;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just use pselShowUserSelector instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, TIL, will look into it.

@@ -37,7 +37,17 @@ int main(int argc, char **argv)
rc = accountGetPreselectedUser(&userID);

if (R_FAILED(rc)) {
printf("accountGetPreselectedUser() failed: 0x%x\n", rc);
printf("accountGetPreselectedUser() failed: 0x%x, using pselUi..\n", rc);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using pselShowUserSelector

@yellows8 yellows8 merged commit b55cb17 into switchbrew:master Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants