Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gba: improve save type detection for homebrew (#1367)
Commercial GBA games contain strings in the ROM that correspond to a save type (e.g. SRAM, flash memory, EEPROM), followed by 3 digits. These strings are used by ares to detect what save type to use. However, when running [jsmolka's SRAM and flash memory save tests](https://github.com/jsmolka/gba-tests/tree/master/save), ares does not detect a save type, since the programs lack the 3 digits at the end of the save type string. This PR ignores the trailing digits during save type detection, since it's likely that many other homebrew programs are affected by the same issue ([GBATEK even advises developers to not add digits when including save type strings](https://problemkaputt.de/gbatek-gba-cart-backup-ids.htm)).
- Loading branch information