mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
ti99: Prevent re-appearing memory contents when swapping cartridges.
This commit is contained in:
parent
90b4007b6b
commit
af2c089e75
@ -386,6 +386,19 @@ void ti99_cartridge_device::call_unload()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we don't clear this, swapping cartridges may make old contents reappear
|
||||||
|
if (memregion("grom"))
|
||||||
|
machine().memory().region_free(memregion("grom")->name());
|
||||||
|
|
||||||
|
if (memregion("rom"))
|
||||||
|
machine().memory().region_free(memregion("rom")->name());
|
||||||
|
|
||||||
|
if (memregion("nvram"))
|
||||||
|
machine().memory().region_free(memregion("nvram")->name());
|
||||||
|
|
||||||
|
if (memregion("ram"))
|
||||||
|
machine().memory().region_free(memregion("ram")->name());
|
||||||
|
|
||||||
m_pcb = nullptr;
|
m_pcb = nullptr;
|
||||||
m_connector->remove();
|
m_connector->remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user