From be769c28fae907f2dd72a4ecf25daca761b197f8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 27 Feb 2023 00:55:44 +1000 Subject: [PATCH] Qt: Cancel game list refresh before GetSaveStateFileName() Fixes lockup/crash when starting a file early. --- pcsx2-qt/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 8c234a8481..2d1f91c91c 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -2882,6 +2882,9 @@ void MainWindow::doStartFile(std::optional source, const QStrin // we might still be saving a resume state... VMManager::WaitForSaveStateFlush(); + // GetSaveStateFileName() might temporarily mount the ISO to get the serial. + cancelGameListRefresh(); + const std::optional resume( promptForResumeState(QString::fromStdString(VMManager::GetSaveStateFileName(params->filename.c_str(), -1)))); if (!resume.has_value())