GBA RR: Starting from savestate now embeds the savegame
Jeffrey Pfau jeffrey@endrift.com
Mon, 28 Dec 2015 15:13:54 -0500
2 files changed,
3 insertions(+),
2 deletions(-)
M
src/gba/rr/rr.c
→
src/gba/rr/rr.c
@@ -27,7 +27,7 @@ }
if (gba->rr->initFrom & INIT_FROM_SAVESTATE) { struct VFile* vf = gba->rr->openSavestate(gba->rr, O_TRUNC | O_CREAT | O_RDWR); - GBASaveStateNamed(gba, vf, 0); + GBASaveStateNamed(gba, vf, SAVESTATE_SAVEDATA); vf->close(vf); } else { ARMReset(gba->cpu);@@ -51,7 +51,7 @@ }
if (gba->rr->initFrom & INIT_FROM_SAVESTATE) { struct VFile* vf = gba->rr->openSavestate(gba->rr, O_RDONLY); - GBALoadStateNamed(gba, vf, SAVESTATE_SCREENSHOT); + GBALoadStateNamed(gba, vf, SAVESTATE_SCREENSHOT | SAVESTATE_SAVEDATA); vf->close(vf); } else { ARMReset(gba->cpu);