DS: Properly close save file on close
Vicki Pfau vi@endrift.com
Wed, 22 Jul 2020 22:18:53 -0700
2 files changed,
5 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -19,6 +19,7 @@ - DS: Fix leaking BIOS and firmware filehandles
- DS: Fix freeing memory for partial BIOS on load failure - DS Video: Properly deinitialize - DS GX: Mask off invalid bits of the palette base + - DS: Properly close save file on close Misc: - DS GX: Clean up and unify texture mapping - DS Core: Add symbol loading
M
src/ds/ds.c
→
src/ds/ds.c
@@ -235,6 +235,10 @@ if (ds->romVf) {
ds->romVf->close(ds->romVf); ds->romVf = NULL; } + if (ds->memory.slot1.spiRealVf) { + ds->memory.slot1.spiRealVf->close(ds->memory.slot1.spiRealVf); + ds->memory.slot1.spiRealVf = NULL; + } } void DSDestroy(struct DS* ds) {