diff options
Diffstat (limited to 'logic/ftb/LegacyFTBInstance.cpp')
-rw-r--r-- | logic/ftb/LegacyFTBInstance.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/logic/ftb/LegacyFTBInstance.cpp b/logic/ftb/LegacyFTBInstance.cpp new file mode 100644 index 00000000..06bef948 --- /dev/null +++ b/logic/ftb/LegacyFTBInstance.cpp @@ -0,0 +1,20 @@ +#include "LegacyFTBInstance.h" + +LegacyFTBInstance::LegacyFTBInstance(const QString &rootDir, SettingsObject *settings, QObject *parent) : + LegacyInstance(rootDir, settings, parent) +{ +} + +QString LegacyFTBInstance::getStatusbarDescription() +{ + if (flags() & VersionBrokenFlag) + { + return "Legacy FTB: " + intendedVersionId() + " (broken)"; + } + return "Legacy FTB: " + intendedVersionId(); +} + +QString LegacyFTBInstance::id() const +{ + return "FTB/" + BaseInstance::id(); +} |