mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-10 21:40:43 +00:00
Fix Emulator::Pause() segfault
This commit is contained in:
parent
c6dadc537b
commit
623f5822b3
@ -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…
x
Reference in New Issue
Block a user