mirror of https://github.com/mgba-emu/mgba.git
GBA Savedata: Fix save mtime updating when r/o
This commit is contained in:
parent
9bf50a9c89
commit
261edb3792
1
CHANGES
1
CHANGES
|
@ -2,6 +2,7 @@
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
- GBA Video: Mark OAM dirty on reset (fixes mgba.io/i/1062)
|
- GBA Video: Mark OAM dirty on reset (fixes mgba.io/i/1062)
|
||||||
- GBA Hardware: Fix RTC overriding light sensor (fixes mgba.io/i/1069)
|
- GBA Hardware: Fix RTC overriding light sensor (fixes mgba.io/i/1069)
|
||||||
|
- GBA Savedata: Fix savedata modified time updating when read-only
|
||||||
|
|
||||||
0.6.3: (2017-04-14)
|
0.6.3: (2017-04-14)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -516,12 +516,14 @@ void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
||||||
if (savedata->maskWriteback) {
|
if (savedata->maskWriteback) {
|
||||||
GBASavedataUnmask(savedata);
|
GBASavedataUnmask(savedata);
|
||||||
}
|
}
|
||||||
size_t size = GBASavedataSize(savedata);
|
if (savedata->mapMode & MAP_WRITE) {
|
||||||
savedata->dirty = 0;
|
size_t size = GBASavedataSize(savedata);
|
||||||
if (savedata->data && savedata->vf->sync(savedata->vf, savedata->data, size)) {
|
savedata->dirty = 0;
|
||||||
mLOG(GBA_SAVE, INFO, "Savedata synced");
|
if (savedata->data && savedata->vf->sync(savedata->vf, savedata->data, size)) {
|
||||||
} else {
|
mLOG(GBA_SAVE, INFO, "Savedata synced");
|
||||||
mLOG(GBA_SAVE, INFO, "Savedata failed to sync!");
|
} else {
|
||||||
|
mLOG(GBA_SAVE, INFO, "Savedata failed to sync!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue