mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 11:39:55 +00:00
Implemented version list sorting.
Resolves MMC-8: https://jira.forkk.net/browse/MMC-8
This commit is contained in:
@@ -41,6 +41,16 @@ InstVersionList *InstVersion::versionList() const
|
||||
return (InstVersionList *)parent();
|
||||
}
|
||||
|
||||
bool InstVersion::isLessThan(const InstVersion &other) const
|
||||
{
|
||||
return timestamp() < other.timestamp();
|
||||
}
|
||||
|
||||
bool InstVersion::isGreaterThan(const InstVersion &other) const
|
||||
{
|
||||
return timestamp() > other.timestamp();
|
||||
}
|
||||
|
||||
bool InstVersion::isMeta() const
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user