summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftVersion.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-11 19:13:21 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:30 +0200
commit68ef451be5a0b8724381187f5aa123d87b82e222 (patch)
tree873aabeab988229beb95f2e8feec05ba585ace50 /logic/minecraft/MinecraftVersion.cpp
parente993adaf44ca3ef7f23cb26539ca741e58e8fac0 (diff)
downloadMultiMC-68ef451be5a0b8724381187f5aa123d87b82e222.tar
MultiMC-68ef451be5a0b8724381187f5aa123d87b82e222.tar.gz
MultiMC-68ef451be5a0b8724381187f5aa123d87b82e222.tar.lz
MultiMC-68ef451be5a0b8724381187f5aa123d87b82e222.tar.xz
MultiMC-68ef451be5a0b8724381187f5aa123d87b82e222.zip
Small fixes, including release dates of some legacy versions
Diffstat (limited to 'logic/minecraft/MinecraftVersion.cpp')
-rw-r--r--logic/minecraft/MinecraftVersion.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/logic/minecraft/MinecraftVersion.cpp b/logic/minecraft/MinecraftVersion.cpp
index e0cbce8d..b66b9768 100644
--- a/logic/minecraft/MinecraftVersion.cpp
+++ b/logic/minecraft/MinecraftVersion.cpp
@@ -20,14 +20,26 @@ QString MinecraftVersion::name()
QString MinecraftVersion::typeString() const
{
- if (is_snapshot)
+ if(m_type == "snapshot")
{
return QObject::tr("Snapshot");
}
- else
+ else if (m_type == "release")
{
return QObject::tr("Regular release");
}
+ else if (m_type == "old_alpha")
+ {
+ return QObject::tr("Alpha");
+ }
+ else if (m_type == "old_beta")
+ {
+ return QObject::tr("Beta");
+ }
+ else
+ {
+ return QString();
+ }
}
bool MinecraftVersion::hasJarMods()