all repos — mgba @ 2f2908240178cd418acc6e4942ad9b78939b85a5

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

2f2908240178cd418acc6e4942ad9b78939b85a5

parent

8f1148498e12197745f62e477d9b8e07382cc72e

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

jump to
M CHANGESCHANGES

@@ -25,6 +25,7 @@ - All: Improve export headers (fixes mgba.io/i/1738)

- Core: Ensure ELF regions can be written before trying - Debugger: Don't skip undefined instructions when debugger attached - GB Core: Fix extracting SRAM when none is present + - GBA Savedata: Fix extracting save when not yet configured in-game - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) Misc:
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);