Skip to content

Client: Do not crash in SettingsDialog if the User folder is not set#73

Merged
jchv merged 1 commit into
puyonexus:masterfrom
LossRain:fix_asset_bundle
May 17, 2026
Merged

Client: Do not crash in SettingsDialog if the User folder is not set#73
jchv merged 1 commit into
puyonexus:masterfrom
LossRain:fix_asset_bundle

Conversation

@LossRain

Copy link
Copy Markdown
Contributor

As a consequence of #52, SettingsDialog might look for user data in places it might not be present, particularly the "." folder. Previously, this throws a std::filesystem::error that crashes the client. For now, let's replace the hard crash with a message in the standard error.

For the future, I suggest throwing a pop-up with more information if no asset of a particular type is found with a hyperlink to the Download page and information if not a single folder is available. Instructions for adding more folders for package maintainers should be provided. There also seems to be a bug where we have to resort to using "/./" in the file path, which I find very off-putting, prone to errors (when the path is taken literally without resolution) and possibly platform dependent.

…ot present in a location

As a consequence of puyonexus#52, SettingsDialog might look for user data in places it might not be present,
particularly the "." folder. Previously this threw a std::filesystem::error that crashed the client.
This commit replaces this behaviour with error writes to std::cerr.
@jchv
jchv merged commit 430975a into puyonexus:master May 17, 2026
3 of 4 checks passed
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