pollymc/launcher/InstanceCreationTask.cpp

19 lines
438 B
C++
Raw Normal View History

2016-10-03 04:25:54 +05:30
#include "InstanceCreationTask.h"
#include <QDebug>
2016-10-03 04:25:54 +05:30
InstanceCreationTask::InstanceCreationTask() {}
2016-10-03 04:25:54 +05:30
void InstanceCreationTask::executeTask()
{
if (updateInstance() || createInstance()) {
emitSucceeded();
return;
2018-07-15 18:21:05 +05:30
}
qWarning() << "Instance creation failed!";
if (!m_error_message.isEmpty())
qWarning() << "Reason: " << m_error_message;
emitFailed(tr("Error while creating new instance."));
2016-10-03 04:25:54 +05:30
}