-
Notifications
You must be signed in to change notification settings - Fork 722
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
BizHawkClient: Add error message if patching fails #2877
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other reviewers that might wonder:
_patch_and_run_game
is currently only called inside a Utils.async_start
so I think it doesn't make any difference whether the exception is raised or not.
It seems a little strange that this function is async
when it doesn't have any await
in it, (and also calls its own async_start
), but that's not related to the issue that this PR is addressing.
What is this fixing or adding?
When a user opens a patch file and is asked to select their vanilla ROM through the settings api, if they close the file selection window or select a file that doesn't validate, the exception isn't visible to the user except through the console/log files. This adds a message to the client UI notifying the user what happened.
It's possible something like this should be closer to CommonClient or Settings, but would probably require quite a bit more UX design. At least compared to catching an error and logging something to the UI.
How was this tested?
Deleted my Emerald ROM and tried opening a patch file by providing
If this makes graphical changes, please attach screenshots.