aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta/Version.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/meta/Version.cpp')
-rw-r--r--launcher/meta/Version.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/meta/Version.cpp b/launcher/meta/Version.cpp
index 68cfa55c..e617abf8 100644
--- a/launcher/meta/Version.cpp
+++ b/launcher/meta/Version.cpp
@@ -99,6 +99,11 @@ QString Meta::Version::localFilename() const
return m_uid + '/' + m_version + ".json";
}
+::Version Meta::Version::toComparableVersion() const
+{
+ return { const_cast<Meta::Version*>(this)->descriptor() };
+}
+
void Meta::Version::setType(const QString &type)
{
m_type = type;