mirror of
https://github.com/risingPhil/libpokemegb.git
synced 2026-04-24 15:38:02 -05:00
The gen 2 saves contain 2 markers per section (main/backup) to serve as canary values to see whether an actual save is stored. Because after all: checksum 0 is a valid checksum in some cases. So to distinguish between a valid and a corrupted save, these markers are used. And now we use it too! This will be necessary to detect that there's no save file in case the save was wiped (or a reproduction cart is used) |
||
|---|---|---|
| .. | ||
| addDistributionPoke | ||
| checkSave | ||
| decodeSprite | ||
| do_stuff_gen1 | ||
| do_stuff_gen2 | ||
| encodeText_gen1 | ||
| encodeText_gen2 | ||
| gen2_addItem | ||
| gen2_getEventFlag | ||
| gen2_gsball | ||
| gen2_removeItem | ||
| gen2_setEventFlag | ||
| Makefile | ||