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");
|
uint32_t keyCode = KeyManager::GetKeyCode("Tab");
|
||||||
|
|
||||||
|
_videoDecoder->StartThread();
|
||||||
_emulationThreadId = std::this_thread::get_id();
|
_emulationThreadId = std::this_thread::get_id();
|
||||||
|
|
||||||
auto lock = _runLock.AcquireSafe();
|
auto lock = _runLock.AcquireSafe();
|
||||||
|
@ -104,6 +105,8 @@ void Console::Stop()
|
||||||
_debugger.reset();
|
_debugger.reset();
|
||||||
debugger.reset();
|
debugger.reset();
|
||||||
|
|
||||||
|
_videoDecoder->StopThread();
|
||||||
|
|
||||||
_cpu.reset();
|
_cpu.reset();
|
||||||
_ppu.reset();
|
_ppu.reset();
|
||||||
_spc.reset();
|
_spc.reset();
|
||||||
|
|
Loading…
Add table
Reference in a new issue