GBA RR: Starting from savestate now embeds the savegame

This commit is contained in:
Jeffrey Pfau 2015-12-28 15:13:54 -05:00
parent b2193d9191
commit b20cda21e1
2 changed files with 3 additions and 2 deletions

View File

@ -39,6 +39,7 @@ Misc:
- Qt: Gray out "Skip BIOS intro" while "Use BIOS file" is unchecked
- Qt: Allow use of modifier keys as input
- Qt: Optimize log viewer
- GBA RR: Starting from savestate now embeds the savegame
0.3.2: (2015-12-16)
Bugfixes:

View File

@ -27,7 +27,7 @@ void GBARRInitRecord(struct GBA* gba) {
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 @@ void GBARRInitPlay(struct GBA* gba) {
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);