GBA: Cannot clean a savefile if there is no vf
Jeffrey Pfau jeffrey@endrift.com
Sat, 11 Jul 2015 16:32:11 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gba/savedata.c
→
src/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)) {