mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix GBA EEPROM 64 KB writing 2 banks (#116)
This commit is contained in:
parent
9df30e86a4
commit
b5df5a6971
@ -299,7 +299,6 @@ bool gbaWriteSave(u32 dst, u8 *src, u32 len, saveTypeGBA type)
|
|||||||
case SAVE_GBA_FLASH_128:
|
case SAVE_GBA_FLASH_128:
|
||||||
// FLASH - must be opend by register magic, erased and then rewritten
|
// FLASH - must be opend by register magic, erased and then rewritten
|
||||||
// FIXME: currently, you can only write "all or nothing"
|
// FIXME: currently, you can only write "all or nothing"
|
||||||
nbanks = 2;
|
|
||||||
for (int j = 0; j < nbanks; j++) {
|
for (int j = 0; j < nbanks; j++) {
|
||||||
*(vu8*)0x0a005555 = 0xaa;
|
*(vu8*)0x0a005555 = 0xaa;
|
||||||
swiDelay(10);
|
swiDelay(10);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user