Commit Graph

2 Commits

Author SHA1 Message Date
Philippe Symons
75a0028cd2 Merge branch 'bugfix/gb-payload-lockup-on-transfer' into isolate_mystery_gift_builder
and convert PokeBox BEFORE injection (to separate IWRAM consumption)
2026-08-20 13:58:44 +02:00
Philippe Symons
b0cbf0e725 More work on the mystery_gift_builder isolation
I changed the approach a bit.

I realized that injection of stuff like text and the looker sprite at runtime, would result in every var
reference requiring an address shift.

That would be much more difficult to track and patch at runtime.

So I decided to do things a little differently:

- Copied the grit-*generated* lookerRSE.c, lookerFRLG.c and associated headers.

- text injection will also be done at compile time. To do so, I'll take the path to the uncompressed
RSEFRLG table (which is generated by text_helper) as a cmdline arg and use it to inject those strings
at compile time.

So the only runtime injection required would be the pokémon themselves. And the size of those is static.
So that works out!
2026-07-29 21:49:27 +02:00