Fix GBA EEPROM 64 KB writing 2 banks (#116)

This commit is contained in:
Pk11 2021-11-07 17:12:45 -06:00 committed by GitHub
parent 9df30e86a4
commit b5df5a6971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,7 +299,6 @@ bool gbaWriteSave(u32 dst, u8 *src, u32 len, saveTypeGBA type)
case SAVE_GBA_FLASH_128:
// FLASH - must be opend by register magic, erased and then rewritten
// FIXME: currently, you can only write "all or nothing"
nbanks = 2;
for (int j = 0; j < nbanks; j++) {
*(vu8*)0x0a005555 = 0xaa;
swiDelay(10);