mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
CPU/CodeCache: Fix crash when BIOS is missing
This commit is contained in:
parent
610cc74cb9
commit
d5a5432a8b
|
@ -21,7 +21,8 @@ CodeCache::CodeCache() = default;
|
||||||
|
|
||||||
CodeCache::~CodeCache()
|
CodeCache::~CodeCache()
|
||||||
{
|
{
|
||||||
Flush();
|
if (m_system)
|
||||||
|
Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodeCache::Initialize(System* system, Core* core, Bus* bus, bool use_recompiler)
|
void CodeCache::Initialize(System* system, Core* core, Bus* bus, bool use_recompiler)
|
||||||
|
|
Loading…
Reference in a new issue