Fix properly RSX replay thread stop bug

This commit is contained in:
Eladash 2023-06-19 10:49:59 +03:00 committed by Megamouse
parent aff871f127
commit 4f5348c7d4
3 changed files with 23 additions and 15 deletions

View file

@ -2570,13 +2570,6 @@ std::shared_ptr<utils::serial> Emulator::Kill(bool allow_autoexit, bool savestat
// Signal threads
// Stop the replay thread "game" first
if (auto thr = g_fxo->try_get<named_thread<rsx::rsx_replay_thread>>())
{
sys_log.notice("Stopping RSX replay thread...");
*thr = thread_state::finished;
}
if (auto rsx = g_fxo->try_get<rsx::thread>())
{
*static_cast<cpu_thread*>(rsx) = thread_state::aborting;