Prevent crash when switching games
This commit is contained in:
parent
7211eece7c
commit
90801a3174
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,7 @@ void Console::Run()
|
|||
|
||||
uint32_t keyCode = KeyManager::GetKeyCode("Tab");
|
||||
|
||||
_videoDecoder->StartThread();
|
||||
_emulationThreadId = std::this_thread::get_id();
|
||||
|
||||
auto lock = _runLock.AcquireSafe();
|
||||
|
@ -104,6 +105,8 @@ void Console::Stop()
|
|||
_debugger.reset();
|
||||
debugger.reset();
|
||||
|
||||
_videoDecoder->StopThread();
|
||||
|
||||
_cpu.reset();
|
||||
_ppu.reset();
|
||||
_spc.reset();
|
||||
|
|
Loading…
Add table
Reference in a new issue