PrismLauncher/launcher/InstanceCreationTask.cpp

19 lines
438 B
C++
Raw Normal View History

2016-10-02 23:55:54 +01:00
#include "InstanceCreationTask.h"
#include <QDebug>
2016-10-02 23:55:54 +01:00
InstanceCreationTask::InstanceCreationTask() {}
2016-10-02 23:55:54 +01:00
void InstanceCreationTask::executeTask()
{
if (updateInstance() || createInstance()) {
emitSucceeded();
return;
2018-07-15 13:51:05 +01:00
}
qWarning() << "Instance creation failed!";
if (!m_error_message.isEmpty())
qWarning() << "Reason: " << m_error_message;
emitFailed(tr("Error while creating new instance."));
2016-10-02 23:55:54 +01:00
}