|
|
|
|
@ -361,24 +361,23 @@ void QtHostInterface::resumeSystemFromState(const QString& filename, bool boot_o
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string state_filename = filename.toStdString();
|
|
|
|
|
if (state_filename.empty())
|
|
|
|
|
emit emulationStarting();
|
|
|
|
|
if (filename.isEmpty())
|
|
|
|
|
ResumeSystemFromMostRecentState();
|
|
|
|
|
else
|
|
|
|
|
ResumeSystemFromState(filename.toStdString().c_str(), boot_on_failure);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QtHostInterface::resumeSystemFromMostRecentState()
|
|
|
|
|
{
|
|
|
|
|
state_filename = GetMostRecentResumeSaveStatePath();
|
|
|
|
|
std::string state_filename = GetMostRecentResumeSaveStatePath();
|
|
|
|
|
if (state_filename.empty())
|
|
|
|
|
{
|
|
|
|
|
emit errorReported(tr("No resume save state found."));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
emit emulationStarting();
|
|
|
|
|
ResumeSystemFromState(state_filename.c_str(), boot_on_failure);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QtHostInterface::resumeSystemFromMostRecentState()
|
|
|
|
|
{
|
|
|
|
|
resumeSystemFromState(QString(), false);
|
|
|
|
|
loadState(QString::fromStdString(state_filename));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QtHostInterface::onDisplayWindowKeyEvent(int key, bool pressed)
|
|
|
|
|
|