mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
Qt: Don't resume when booting without game code
This commit is contained in:
parent
dcc9da3f5e
commit
6456c5d63d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue