diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-01-27 22:31:07 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-02 00:14:06 +0200 |
commit | 791221e923586bb717396ecf18bd13e57034df99 (patch) | |
tree | 9f608af07375b38626c8964671620477158341ba /logic/ftb/LegacyFTBInstance.cpp | |
parent | 593111b14463e9d5d08256061b981b5ab1cfb710 (diff) | |
download | PrismLauncher-791221e923586bb717396ecf18bd13e57034df99.tar.gz PrismLauncher-791221e923586bb717396ecf18bd13e57034df99.tar.bz2 PrismLauncher-791221e923586bb717396ecf18bd13e57034df99.zip |
NOISSUE Refactors and moving of things
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(); +} |