mirror of https://github.com/mgba-emu/mgba.git
GB: Deinit sram
This commit is contained in:
parent
85e789c3e9
commit
b6fc26a7bf
|
@ -124,6 +124,7 @@ void GBUnloadROM(struct GB* gb) {
|
||||||
|
|
||||||
if (gb->sramVf) {
|
if (gb->sramVf) {
|
||||||
gb->sramVf->unmap(gb->sramVf, gb->memory.sram, 0x8000);
|
gb->sramVf->unmap(gb->sramVf, gb->memory.sram, 0x8000);
|
||||||
|
gb->sramVf = 0;
|
||||||
} else if (gb->memory.sram) {
|
} else if (gb->memory.sram) {
|
||||||
mappedMemoryFree(gb->memory.sram, 0x8000);
|
mappedMemoryFree(gb->memory.sram, 0x8000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue