all repos — mgba @ 9d7b79db2798ae6d29aa6eca5fb651ea686ca471

mGBA Game Boy Advance Emulator

GBA: Cannot clean a savefile if there is no vf
Jeffrey Pfau jeffrey@endrift.com
Sat, 11 Jul 2015 16:32:11 -0700
commit

9d7b79db2798ae6d29aa6eca5fb651ea686ca471

parent

0496691c9b0a767cf92dd50dbfec38f38e67439b

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/savedata.csrc/gba/savedata.c

@@ -407,6 +407,9 @@ return 0;

} void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) { + if (!savedata->vf) { + return; + } if (savedata->dirty & SAVEDATA_DIRT_NEW) { savedata->dirty &= ~SAVEDATA_DIRT_NEW; if (!(savedata->dirty & SAVEDATA_DIRT_SEEN)) {