mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 21:15:19 +00:00
49970ae730
MultiMC should now detect aarch64/arm64 architectures and no longer uses '32' and '64' as CPU architectures. Detection should work for x86, amd64 and aarch64. This also affected the old (unused) analytics code, so I removed it.
34 lines
637 B
C++
34 lines
637 B
C++
#include "JavaInstall.h"
|
|
#include <MMCStrings.h>
|
|
|
|
bool JavaInstall::operator<(const JavaInstall &rhs)
|
|
{
|
|
if(arch < rhs.arch)
|
|
{
|
|
return true;
|
|
}
|
|
if(arch > rhs.arch)
|
|
{
|
|
return false;
|
|
}
|
|
if(id < rhs.id)
|
|
{
|
|
return true;
|
|
}
|
|
if(id > rhs.id)
|
|
{
|
|
return false;
|
|
}
|
|
return Strings::naturalCompare(path, rhs.path, Qt::CaseInsensitive) < 0;
|
|
}
|
|
|
|
bool JavaInstall::operator==(const JavaInstall &rhs)
|
|
{
|
|
return arch == rhs.arch && id == rhs.id && path == rhs.path;
|
|
}
|
|
|
|
bool JavaInstall::operator>(const JavaInstall &rhs)
|
|
{
|
|
return (!operator<(rhs)) && (!operator==(rhs));
|
|
}
|