GBA Savedata: Fix savedata sync timer
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Sep 2016 17:45:58 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -41,6 +41,7 @@ - Qt: Fix being unable to pause manually when using auto-pausing
- GBA Memory: Fix ldm {pc} - GBA Video: Fix out-of-order OBJWIN - GBA: Count up timers should not count themselves + - GBA Savedata: Fix savedata sync timer Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure
M
src/gba/savedata.c
→
src/gba/savedata.c
@@ -482,9 +482,9 @@ if (!savedata->vf) {
return; } if (savedata->dirty & SAVEDATA_DIRT_NEW) { + savedata->dirtAge = frameCount; savedata->dirty &= ~SAVEDATA_DIRT_NEW; if (!(savedata->dirty & SAVEDATA_DIRT_SEEN)) { - savedata->dirtAge = frameCount; savedata->dirty |= SAVEDATA_DIRT_SEEN; } } else if ((savedata->dirty & SAVEDATA_DIRT_SEEN) && frameCount - savedata->dirtAge > CLEANUP_THRESHOLD) {