mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Fix Emulator::Pause() segfault
This commit is contained in:
parent
c6dadc537b
commit
623f5822b3
1 changed files with 1 additions and 0 deletions
|
@ -2767,6 +2767,7 @@ bool Emulator::Pause(bool freeze_emulation, bool show_resume_message)
|
|||
std::unique_ptr<named_thread<decltype(refresh_l)>> m_thread;
|
||||
};
|
||||
|
||||
g_fxo->need<thread_t>();
|
||||
g_fxo->get<thread_t>().m_thread.reset();
|
||||
g_fxo->get<thread_t>().m_thread = std::make_unique<named_thread<decltype(refresh_l)>>("Pause Message Thread"sv, std::move(refresh_l));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue