Skip to content
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

Update close_game #408

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Update close_game #408

merged 3 commits into from
Mar 4, 2024

Conversation

jw098
Copy link
Collaborator

@jw098 jw098 commented Mar 4, 2024

Updated the button press sequence so it will close the game from the home screen, regardless of whether the game is open or closed. For more reliable recovery after a crash.

pbf_press_dpad(context, DPAD_DOWN, 50, 50); // if game open: Does nothing. if game closed: moves selector away from the closed game to avoid opening it.
pbf_press_dpad(context, DPAD_DOWN, 50, 50); // extra insurance against button drops.
pbf_mash_button(context, BUTTON_A, 50); // if game open: Confirm close game. if game closed: opens an app in the home screen (e.g. Online)
pbf_mash_button(context, BUTTON_HOME, 50); // if game open: Does nothing. if game closed: closes the app and goes back to home screen.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you mean, "If game closed"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated my comments.

@Mysticial Mysticial merged commit dfe6e5d into PokemonAutomation:main Mar 4, 2024
6 checks passed
@jw098 jw098 deleted the close-game2 branch March 25, 2024 05:43
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