mirror of https://github.com/mgba-emu/mgba.git
GBA: Cannot clean a savefile if there is no vf
This commit is contained in:
parent
0496691c9b
commit
9d7b79db27
|
@ -407,6 +407,9 @@ uint16_t GBASavedataReadEEPROM(struct GBASavedata* savedata) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
void GBASavedataClean(struct GBASavedata* savedata, uint32_t frameCount) {
|
||||||
|
if (!savedata->vf) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (savedata->dirty & SAVEDATA_DIRT_NEW) {
|
if (savedata->dirty & SAVEDATA_DIRT_NEW) {
|
||||||
savedata->dirty &= ~SAVEDATA_DIRT_NEW;
|
savedata->dirty &= ~SAVEDATA_DIRT_NEW;
|
||||||
if (!(savedata->dirty & SAVEDATA_DIRT_SEEN)) {
|
if (!(savedata->dirty & SAVEDATA_DIRT_SEEN)) {
|
||||||
|
|
Loading…
Reference in New Issue