Draft
Conversation
c7bfc26 to
67b06c0
Compare
67b06c0 to
dafaecb
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
More YAML woes:
TODO:
Rationale behind Changes
Prevent crashes.
In #14207 I made a mistake where I thought the error callbacks I setup would be called after parsing was completed, however in that case a completely different set of error callbacks are used instead, so it should be safe to try and recover from all types of errors during parsing.
I'm quite surprised that RapidYAML's API makes what I'm doing here so complicated. It seems like it's very strongly geared towards throwing an exception or using setjmp/longjmp when there's any sort of problem, however to do that we'd need to call setjmp lower down the stack in the memory card code, and I don't really want to drastically change the memory card code out of a fear of breaking it. I just want to fix the crashes, and given we've got exceptions disabled I don't want to introduce more setjmp/longjmp mess.
Suggested Testing Steps
Test loading folder memory cards for various games. Test verifying game ISOs in the game properties dialog.
To make sure I didn't screw up game DB parsing in the happy case I wrote some code to dump the whole thing out so I could diff the results:
Did you use AI to help find, test, or implement this issue or feature?
No.