Skip to content

Add message box when emulator fails to load invalid or corrupted file. #2075

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SirQuartz
Copy link

This pull request implements a message box when the user attempts to open an invalid or corrupt file format, either by dragging and dropping or by opening it through the file system.

Before, the emulator would just immediately terminate if this happened, which is something that should be avoided whenever possible because it's not particularly constructive or informative for the user. In this case it is completely avoidable, so it might as well be avoided.

With this pull request the emulator will no longer immediately crash, it will instead show a message box that actually tells the user what went wrong.

Xenia.Message.Box.mp4

Xenia Message Box

Copy link
Contributor

@CookiePLMonster CookiePLMonster left a comment

Choose a reason for hiding this comment

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

The current approach will break with Unicode characters present in the filename. xe::path_to_utf8 will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants