all repos — mgba @ 83237c7e7697288d9464c5f9d2cb287aef5276a3

mGBA Game Boy Advance Emulator

GBA Savedata: Fix extracting save when not yet configured in-game
Vicki Pfau vi@endrift.com
Thu, 18 Jun 2020 01:26:54 -0700
commit

83237c7e7697288d9464c5f9d2cb287aef5276a3

parent

853cdf28803caa5ad9ba0f3decf47522739e8b04

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -5,6 +5,7 @@ - GB MBC: Fix MBC1 RAM enable bit selection

- GB MBC: Fix MBC2 bit selection Other fixes: - GB Core: Fix extracting SRAM when none is present + - GBA Savedata: Fix extracting save when not yet configured in-game 0.8.2: (2020-06-14) Emulation fixes:
M src/gba/savedata.csrc/gba/savedata.c

@@ -139,6 +139,7 @@ }

} else if (savedata->vf) { off_t read = 0; uint8_t buffer[2048]; + savedata->vf->seek(savedata->vf, 0, SEEK_SET); do { read = savedata->vf->read(savedata->vf, buffer, sizeof(buffer)); out->write(out, buffer, read);