Qt: Don't resume when booting without game code
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user