Use g_fxo for rsx::rsx_replay_thread

This commit is contained in:
Nekotekina 2019-09-26 19:07:17 +03:00
parent a6edcca6e6
commit 50fc5dfde5
2 changed files with 2 additions and 1 deletions

View File

@ -411,6 +411,7 @@ class named_thread final : public Context, result_storage_t<Context>, thread_bas
public:
// Default constructor
template <bool Valid = std::is_default_constructible_v<Context>, typename = std::enable_if_t<Valid>>
named_thread()
: Context()
, thread(get_default_thread_name())

View File

@ -655,7 +655,7 @@ bool Emulator::BootRsxCapture(const std::string& path)
GetCallbacks().on_run();
m_state = system_state::running;
fxm::make<named_thread<rsx::rsx_replay_thread>>("RSX Replay", std::move(frame));
g_fxo->init<named_thread<rsx::rsx_replay_thread>>("RSX Replay"sv, std::move(frame));
return true;
}