From 4fc4a172562a76091721b8c488aafbd6ed2b01ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 2 May 2015 12:44:37 +0200 Subject: NOISSUE handle recommended versions better Moved constants to the version data file Use recommended Minecraft instead of latest stable for new instances by default --- logic/BaseVersionList.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'logic/BaseVersionList.h') diff --git a/logic/BaseVersionList.h b/logic/BaseVersionList.h index 6089c31c..432f6593 100644 --- a/logic/BaseVersionList.h +++ b/logic/BaseVersionList.h @@ -90,12 +90,16 @@ public: virtual BaseVersionPtr findVersion(const QString &descriptor); /*! - * \brief Gets the latest stable version of this instance type. - * This is the version that will be selected by default. - * By default, this is simply the first version in the list. + * \brief Gets the latest stable version from this list */ virtual BaseVersionPtr getLatestStable() const; + /*! + * \brief Gets the recommended version from this list + * If the list doesn't support recommended versions, this works exactly as getLatestStable + */ + virtual BaseVersionPtr getRecommended() const; + /*! * Sorts the version list. */ -- cgit v1.2.3