mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
Bus: Fix assertion failing if booting fails
This commit is contained in:
parent
7ce55ca800
commit
392c7af738
|
@ -128,7 +128,10 @@ void Shutdown()
|
||||||
{
|
{
|
||||||
UnmapFastmemViews();
|
UnmapFastmemViews();
|
||||||
if (g_ram)
|
if (g_ram)
|
||||||
|
{
|
||||||
m_memory_arena.ReleaseViewPtr(g_ram, RAM_SIZE);
|
m_memory_arena.ReleaseViewPtr(g_ram, RAM_SIZE);
|
||||||
|
g_ram = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
CPU::g_state.fastmem_base = nullptr;
|
CPU::g_state.fastmem_base = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue