mirror of https://github.com/mgba-emu/mgba.git
GBA RR: Starting from savestate now embeds the savegame
This commit is contained in:
parent
b2193d9191
commit
b20cda21e1
1
CHANGES
1
CHANGES
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue