all repos — mgba @ 61800d0e9b0540d51833fb7d42b3e6340bd5f3eb

mGBA Game Boy Advance Emulator

GBA Savedata: Fix savedata sync timer
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Sep 2016 17:45:58 -0700
commit

61800d0e9b0540d51833fb7d42b3e6340bd5f3eb

parent

f97a1524be1e876f690232665ded58d144b3c771

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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) {