mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 09:08:42 +00:00
Rework the update checking system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -60,10 +61,14 @@ 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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user