summaryrefslogtreecommitdiffstats
path: root/logic/LegacyFTBInstance.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-17 20:31:50 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-17 20:31:50 +0100
commit0b56b5efafffca77d6deee966097c55e78fb0aef (patch)
treeddb7011fde89c587b864a8c1d6d36cdcaef6472b /logic/LegacyFTBInstance.cpp
parent4e8be668cb9b3c4929748aafb1baf53e6b1c098b (diff)
downloadMultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.gz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.lz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.xz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.zip
Instance flags. Currently used for marking instances as broken. Can later be used for badges.
Diffstat (limited to 'logic/LegacyFTBInstance.cpp')
-rw-r--r--logic/LegacyFTBInstance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/LegacyFTBInstance.cpp b/logic/LegacyFTBInstance.cpp
index 6c6bd10b..23cb259d 100644
--- a/logic/LegacyFTBInstance.cpp
+++ b/logic/LegacyFTBInstance.cpp
@@ -7,6 +7,10 @@ LegacyFTBInstance::LegacyFTBInstance(const QString &rootDir, SettingsObject *set
QString LegacyFTBInstance::getStatusbarDescription()
{
+ if (flags() & VersionBrokenFlag)
+ {
+ return "Legacy FTB: " + intendedVersionId() + " (broken)";
+ }
return "Legacy FTB: " + intendedVersionId();
}