mirror of https://github.com/PCSX2/pcsx2.git
Qt: Cancel game list refresh before GetSaveStateFileName()
Fixes lockup/crash when starting a file early.
This commit is contained in:
parent
3128c48d5b
commit
be769c28fa
|
@ -2882,6 +2882,9 @@ void MainWindow::doStartFile(std::optional<CDVD_SourceType> 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<bool> resume(
|
||||
promptForResumeState(QString::fromStdString(VMManager::GetSaveStateFileName(params->filename.c_str(), -1))));
|
||||
if (!resume.has_value())
|
||||
|
|
Loading…
Reference in New Issue