mirror of https://github.com/mgba-emu/mgba.git
GBA Savedata: Fix save mtime updating when r/o
This commit is contained in:
parent
cb180fe717
commit
a4e105737c
1
CHANGES
1
CHANGES
|
@ -31,6 +31,7 @@ Bugfixes:
|
|||
- GB Audio: Clock frame events on DIV
|
||||
- GBA Timer: Fix timers sometimes being late (fixes mgba.io/i/1012)
|
||||
- GBA Hardware: Fix RTC overriding light sensor (fixes mgba.io/i/1069)
|
||||
- GBA Savedata: Fix savedata modified time updating when read-only
|
||||
Misc:
|
||||
- GBA Timer: Use global cycles for timers
|
||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||
|
|
|
@ -516,6 +516,7 @@ void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
|||
if (savedata->maskWriteback) {
|
||||
GBASavedataUnmask(savedata);
|
||||
}
|
||||
if (savedata->mapMode & MAP_WRITE) {
|
||||
size_t size = GBASavedataSize(savedata);
|
||||
savedata->dirty = 0;
|
||||
if (savedata->data && savedata->vf->sync(savedata->vf, savedata->data, size)) {
|
||||
|
@ -524,6 +525,7 @@ void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
|||
mLOG(GBA_SAVE, INFO, "Savedata failed to sync!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GBASavedataSerialize(const struct GBASavedata* savedata, struct GBASerializedState* state) {
|
||||
|
|
Loading…
Reference in New Issue