From 6456c5d63da316e757216dcb96956520c408203e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 16 Feb 2020 00:15:11 +0900 Subject: [PATCH] Qt: Don't resume when booting without game code --- src/duckstation-qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 21deb9253..27e1060d1 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -340,7 +340,7 @@ void MainWindow::connectSignals() QString path = QString::fromStdString(entry->path); if (!m_emulation_running) { - if (m_host_interface->getSettingValue("General/SaveStateOnExit", true).toBool()) + if (!entry->code.empty() && m_host_interface->getSettingValue("General/SaveStateOnExit", true).toBool()) m_host_interface->resumeSystemFromState(path, true); else m_host_interface->bootSystemFromFile(path);