Herringway / ebsrc

Source code recreation for the game Earthbound
133 stars 8 forks source link

Window struct fixes #11

Closed PhoenixBound closed 3 years ago

PhoenixBound commented 3 years ago

Putting an end to memes like SetSecondaryMemory setting a field called "working_memory."

I'm very confident about the size/offsets of fields in these new structs being correct. I'm not 100% on some of the names though, because I don't understand the full context of $89D4 entries and just blindly copied some names figured out by @CataLatas.

I didn't want to touch anything other than the window_stats struct itself since I was already making things way too big with the docs in the second commit (sorry), but some other stuff that was learned from making this PR:

Both builds are working right now, I'll re-test them after I fix merge conflicts.

Herringway commented 3 years ago

re: point 3, it's possible. I used a regex to find all code matching an LDA #$xxxx / STA $Y / LDA #$xxxx / STA $Y+2 pattern, that may have been a false positive