Qt: Don't resume when booting without game code

This commit is contained in:
Connor McLaughlin 2020-02-16 00:15:11 +09:00
parent dcc9da3f5e
commit 6456c5d63d

View file

@ -340,7 +340,7 @@ void MainWindow::connectSignals()
QString path = QString::fromStdString(entry->path); QString path = QString::fromStdString(entry->path);
if (!m_emulation_running) 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); m_host_interface->resumeSystemFromState(path, true);
else else
m_host_interface->bootSystemFromFile(path); m_host_interface->bootSystemFromFile(path);