-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mia, desktop-ui: Add basic error handling to ROM loading (#1785)
> [!NOTE] > Seeking testers on this to validate that errors appear correctly, are accurate, and we didn't break anything. ### Description Adds the `LoadResult` type, used to identify and propagate upwards errors encountered when loading ROMs and systems. Modifies the `mia` and `desktop-ui` load routines to use this type instead of generic booleans, so that if we have a load failure, we can propagate a precise and useful error to the user rather than a vague and possibly mismatched one. Currently the scope of the error handling is just `mia` and `desktop-ui`; errors encountered when loading in `ares` itself are currently generic "`otherError`"s. `LoadResult` is placed in `mia/mia.hpp` so it is accessible to both `mia` and `desktop-ui`. If LoadResult is added to ares loading in the future, the LoadResult type may need to be moved.
- Loading branch information
Showing
104 changed files
with
889 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.