libpokemegb/examples
Philippe Symons de5381da81 Add code to consider an empty (zero'd out) save as an invalid checksum
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)
2024-09-11 12:28:11 +02:00
..
addDistributionPoke Initial import 2024-06-11 21:45:59 +02:00
checkSave Add code to consider an empty (zero'd out) save as an invalid checksum 2024-09-11 12:28:11 +02:00
decodeSprite Add more SpriteRenderer output formats and move the removeBackground functionality 2024-08-07 21:11:55 +02:00
do_stuff_gen1 Add more SpriteRenderer output formats and move the removeBackground functionality 2024-08-07 21:11:55 +02:00
do_stuff_gen2 Add more SpriteRenderer output formats and move the removeBackground functionality 2024-08-07 21:11:55 +02:00
encodeText_gen1 Initial import 2024-06-11 21:45:59 +02:00
encodeText_gen2 Initial import 2024-06-11 21:45:59 +02:00
gen2_addItem Add functionality to get and set event flags 2024-07-29 00:51:54 +02:00
gen2_getEventFlag Add functionality to get and set event flags 2024-07-29 00:51:54 +02:00
gen2_gsball Add functionality to get and set event flags 2024-07-29 00:51:54 +02:00
gen2_removeItem Add functionality to get and set event flags 2024-07-29 00:51:54 +02:00
gen2_setEventFlag Add functionality to get and set event flags 2024-07-29 00:51:54 +02:00
Makefile Add code to consider an empty (zero'd out) save as an invalid checksum 2024-09-11 12:28:11 +02:00