Hi, I just added 228 extensions to the wiki!
It was a bit long so I did it in a separate page:
https://wiki.openmpt.org/Development:_228_ExtensionsI also added a link to it under the "228 extensions" section of the Format Extensions page:
https://wiki.openmpt.org/Development:_OpenMPT_Format_Extensions#228_ExtensionsIt might be hard to understand, so I will try to simplify it later.
If you have any questions or remarks about code being confusing, please feel free to ask.
And if you remain unsure about something or the exact semantics of aspects that might not get handled or are not deducible from the code, please mark them as "unclear" or whatever you see fit. That's actually more useful as documentation than just claiming a particular interpretation if things are in fact not 100% clear.
The code was a bit confusing, but nothing about the structure of 228 extension chunks were unclear, and I'm pretty sure I wrote everything correctly.
However, I was slightly unsure about a lot of the terminology, because a lot of variable names and comments in the source code were too ambigiuous for me to figure out what each section of a 228 chunk is called.
For example, after what's called a "header byte" in the code, there is a set of bytes called the "header data" (the one that contains the "flag byte"), which is a confusing name. So in the document I called it "additional header data" instead of "header data" which in my opinion makes more sense. I hope that's fine.
If I have made any mistakes, feel free to correct them or let me know about them
