pollymc/api/logic/minecraft/ftb/LegacyFTBInstance.cpp

25 lines
600 B
C++
Raw Normal View History

#include "LegacyFTBInstance.h"
2015-02-09 06:21:14 +05:30
#include <settings/INISettingsObject.h>
#include <QDir>
2015-02-01 07:38:25 +05:30
LegacyFTBInstance::LegacyFTBInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir) :
LegacyInstance(globalSettings, settings, rootDir)
{
}
QString LegacyFTBInstance::id() const
{
return "FTB/" + BaseInstance::id();
}
2017-05-22 01:54:06 +05:30
void LegacyFTBInstance::copy(SettingsObjectPtr newSettings, const QDir& newDir)
{
// set the target instance to be plain Legacy
2017-05-22 01:54:06 +05:30
newSettings->set("InstanceType", "Legacy");
}
QString LegacyFTBInstance::typeName() const
{
return tr("Legacy FTB");
}