Cleanup Emu before the update reboot

This commit is contained in:
Megamouse 2021-03-06 21:10:35 +01:00 committed by Ivan
parent 9da7910fc9
commit dab53f4e41
3 changed files with 12 additions and 2 deletions

View file

@ -545,6 +545,10 @@ bool update_manager::handle_rpcs3(const QByteArray& data)
QMessageBox::information(m_parent, tr("Auto-updater"), tr("Update successful!\nRPCS3 will now restart."));
Emu.SetForceBoot(true);
Emu.Stop();
Emu.CleanUp();
#ifdef _WIN32
const int ret = _wexecl(wchar_orig_path.data(), L"--updating", nullptr);
#else