euan-forrester / save-file-converter

Converter for retro console save files to and from MiSTer, flash cartridges, Nintendo Switch Online, and save states from online emulation websites. Convert .srm to .sav and .sav to .srm. Convert files found around the Internet: All common formats for NES/SNES/GBA/N64/TG16/SMS/Genesis/Neo Geo/PS1 supported. Decrypt PSP saves.
https://savefileconverter.com
GNU General Public License v3.0
143 stars 5 forks source link

Added support for NSO GB files containing RTC data and having a HEAD magic #272

Closed euan-forrester closed 9 months ago

euan-forrester commented 9 months ago

It appears that magic3 can be 0x00 or 0x01 independently of whether magic2 contains "HEAD" or "master", and it seems that it contains RTC data because it's 0x01 for the Pokemon games that use RTC (Crystal, Gold, Silver) and 0x00 for the ones that don't (Yellow, Red, Blue).

Added support for this file type and refactored the file type determination code to be a bit simpler in light of this new information.

Fixes https://github.com/euan-forrester/save-file-converter/issues/271