PrismLauncher/backend/OneSixInstance.cpp

33 lines
824 B
C++
Raw Normal View History

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