Fix RSX replay thread lifecycle
This commit is contained in:
@@ -553,7 +553,9 @@ bool Emulator::BootRsxCapture(const std::string& path)
|
||||
GetCallbacks().on_run(false);
|
||||
m_state = system_state::running;
|
||||
|
||||
g_fxo->init<named_thread<rsx::rsx_replay_thread>>("RSX Replay"sv, std::move(frame));
|
||||
auto replay_thr = g_fxo->init<named_thread<rsx::rsx_replay_thread>>("RSX Replay"sv, std::move(frame));
|
||||
replay_thr->state -= cpu_flag::stop;
|
||||
thread_ctrl::notify(*replay_thr);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user