Skip to content

stream: Implement TextStreamFormat#249

Open
german77 wants to merge 1 commit intoopen-ead:masterfrom
german77:stringFormat
Open

stream: Implement TextStreamFormat#249
german77 wants to merge 1 commit intoopen-ead:masterfrom
german77:stringFormat

Conversation

@german77
Copy link
Contributor

@german77 german77 commented Feb 25, 2026

This is a continuation of the previous PR #237. This implements the string format side of yaml files.

This code has a couple of mismatches.
TextStreamFormat::readBit. This function parses the "0b110011" string by chopping off the "0b" part and parsing each char as 0 or 1. However I couldn't make the compiler follow the same flow. https://decomp.me/scratch/PKNGF

TextStreamFormat::writeMemBlock This function converts the data into a base64 string. I suspect the length calculation is not properly done.https://decomp.me/scratch/Xzhbw

TextStreamFormat::getNextData_ This function actually reads the text file and selects the next field of data. The file supports multiple types of comments "", # and /* */. This has a lot of string related inlines in it, this made the logic very complex, I struggled getting even a meaningful level of match 0-40% after finally understanding the logic and several rewrites the match improved to 93% https://decomp.me/scratch/6wcQg


This change is Reviewable

@german77 german77 force-pushed the stringFormat branch 2 times, most recently from 3f1379c to 78aace5 Compare February 25, 2026 23:14
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.

1 participant