2013-12-20 14:47:26 +01:00
|
|
|
#include "LegacyFTBInstance.h"
|
2015-02-09 01:51:14 +01:00
|
|
|
#include <settings/INISettingsObject.h>
|
2015-04-04 15:46:15 +02:00
|
|
|
#include <QDir>
|
2013-12-20 14:47:26 +01:00
|
|
|
|
2015-02-01 03:08:25 +01:00
|
|
|
LegacyFTBInstance::LegacyFTBInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir) :
|
|
|
|
LegacyInstance(globalSettings, settings, rootDir)
|
2013-12-20 14:47:26 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-01-15 22:49:37 +01:00
|
|
|
QString LegacyFTBInstance::id() const
|
|
|
|
{
|
|
|
|
return "FTB/" + BaseInstance::id();
|
|
|
|
}
|
2015-04-04 15:46:15 +02:00
|
|
|
|
2017-05-21 22:24:06 +02:00
|
|
|
void LegacyFTBInstance::copy(SettingsObjectPtr newSettings, const QDir& newDir)
|
2015-04-04 15:46:15 +02:00
|
|
|
{
|
|
|
|
// set the target instance to be plain Legacy
|
2017-05-21 22:24:06 +02:00
|
|
|
newSettings->set("InstanceType", "Legacy");
|
2015-04-04 15:46:15 +02:00
|
|
|
}
|
2015-09-22 01:06:45 +02:00
|
|
|
|
|
|
|
QString LegacyFTBInstance::typeName() const
|
|
|
|
{
|
|
|
|
return tr("Legacy FTB");
|
|
|
|
}
|