mirror of https://github.com/mgba-emu/mgba.git
GBA Savedata: Fix savedata sync timer
This commit is contained in:
parent
f97a1524be
commit
61800d0e9b
1
CHANGES
1
CHANGES
|
@ -41,6 +41,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -482,9 +482,9 @@ void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue