all repos — mgba @ 1d377450cbe7b11b06096d37e92c350464720382

mGBA Game Boy Advance Emulator

DS: Properly close save file on close
Vicki Pfau vi@endrift.com
Wed, 22 Jul 2020 22:18:53 -0700
commit

1d377450cbe7b11b06096d37e92c350464720382

parent

b3c831a3aad227e68d0b3d28307bdae49d2adcbe

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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) {