1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Migrate launcher to vcmi versions

This commit is contained in:
nordsoft
2023-09-01 04:12:41 +04:00
parent c45ab07d0b
commit ea7ab9d5ed
5 changed files with 38 additions and 69 deletions

View File

@ -60,4 +60,15 @@ bool CModVersion::isNull() const
return major == 0 && minor == 0 && patch == 0;
}
bool operator < (const CModVersion & lesser, const CModVersion & greater)
{
if(lesser.major == greater.major)
{
if(lesser.minor == greater.minor)
return lesser.patch < greater.patch;
return lesser.minor < greater.minor;
}
return lesser.major < greater.major;
}
VCMI_LIB_NAMESPACE_END