diff options
author | Andrew <forkk@forkk.net> | 2013-12-04 12:34:12 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-12-04 12:34:12 -0600 |
commit | bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f (patch) | |
tree | c5da1162598f91853555c580bdba6b778dfc1ac0 /MultiMCVersion.h | |
parent | 6aa9bd0f77dcb5128167fae62e32aa5252fe85c6 (diff) | |
download | MultiMC-bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f.tar MultiMC-bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f.tar.gz MultiMC-bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f.tar.lz MultiMC-bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f.tar.xz MultiMC-bf94aaea7527a8f5b9f3b8c1ab6ff4e88cbd748f.zip |
Rework the update checking system
Diffstat (limited to 'MultiMCVersion.h')
-rw-r--r-- | MultiMCVersion.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/MultiMCVersion.h b/MultiMCVersion.h index 863976b2..8978516b 100644 --- a/MultiMCVersion.h +++ b/MultiMCVersion.h @@ -32,8 +32,9 @@ struct MultiMCVersion QString::number(major), QString::number(minor)); - if (build > 0) vstr += QString(".%1").arg(QString::number(build)); - if (!buildType.isEmpty()) vstr += QString("-%1").arg(buildType); + if (build >= 0) vstr += "." + QString::number(build); + if (!channel.isEmpty()) vstr += "-" + channel; + if (!buildType.isEmpty()) vstr += "-" + buildType; return vstr; } @@ -61,9 +62,13 @@ struct MultiMCVersion int build; /*! + * \brief This build's channel. + */ + QString channel; + + /*! * \brief The build type. - * This indicates the type of build that this is. For example, lin64-stable. - * Usually corresponds to this build's buildbot builder name. + * This indicates the type of build that this is. For example, lin64 or custombuild. */ QString buildType; }; |