Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gba: improve save type detection for homebrew #1367

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

png183
Copy link
Contributor

@png183 png183 commented Jan 17, 2024

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, 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).

@LukeUsher LukeUsher merged commit b28bb3d into ares-emulator:master Jan 18, 2024
9 checks passed
@png183 png183 deleted the gba-save-detect branch January 22, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants