Skip to content

Show errors, plus code refactoring.#22

Closed
dkosmari wants to merge 2 commits into
wiiu-env:0.3-devfrom
dkosmari:display-errors
Closed

Show errors, plus code refactoring.#22
dkosmari wants to merge 2 commits into
wiiu-env:0.3-devfrom
dkosmari:display-errors

Conversation

@dkosmari
Copy link
Copy Markdown
Contributor

Users will download a bunch of images off places like Discord and Reddit, which are known for converting PNG images to WEBP, whilst keeping the .png resource name. So users end up downloading a WEBP image named .png.

This adds an error reporting screen, when an image fails to load, instead of just silently falling back to another image. The error screen stays up for 15 seconds, which should be enough for the user to write down the name of the "bad" image, and either delete it, or rename it properly.

I also went ahead and did some refactoring to remove code duplication when creating the texture, and turned the explicit error handling with RAII handling. The image loading functions now return a message as the error in a std::expected object.

Daniel K. O. (dkosmari) added 2 commits March 13, 2026 18:21
- Some refactoring to reduce code duplication and explicit error handling.
@Maschell Maschell deleted the branch wiiu-env:0.3-dev April 19, 2026 10:04
@Maschell Maschell closed this Apr 19, 2026
@Maschell
Copy link
Copy Markdown
Contributor

Please reopen

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