mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Implemented version list sorting.
Resolves MMC-8: https://jira.forkk.net/browse/MMC-8
This commit is contained in:
parent
055198303c
commit
857a4e4dbe
7 changed files with 90 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue