pollymc/backend/OneSixInstance.cpp

33 lines
824 B
C++
Raw Normal View History

2013-08-03 19:27:33 +05:30
#include "OneSixInstance.h"
#include "OneSixInstance_p.h"
2013-08-04 03:28:39 +05:30
#include "tasks/GameUpdateTask.h"
#include "MinecraftProcess.h"
#include <setting.h>
2013-08-03 19:27:33 +05:30
2013-08-04 03:28:39 +05:30
OneSixInstance::OneSixInstance ( const QString& rootDir, SettingsObject* setting_obj, QObject* parent )
: BaseInstance ( new OneSixInstancePrivate(), rootDir, setting_obj, parent )
2013-08-03 19:27:33 +05:30
{
2013-08-04 03:28:39 +05:30
I_D(OneSixInstance);
d->m_settings->registerSetting(new Setting("IntendedVersion", ""));
2013-08-03 19:27:33 +05:30
}
GameUpdateTask* OneSixInstance::doUpdate()
{
2013-08-04 03:28:39 +05:30
return new GameUpdateTask(this);
2013-08-03 19:27:33 +05:30
}
MinecraftProcess* OneSixInstance::prepareForLaunch ( QString user, QString session )
{
return nullptr;
}
2013-08-04 03:28:39 +05:30
bool OneSixInstance::setIntendedVersionId ( QString version )
{
settings().set("IntendedVersion", version);
}
QString OneSixInstance::intendedVersionId()
{
return settings().get("IntendedVersion").toString();
}