mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Migrate launcher to vcmi versions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -42,4 +42,6 @@ struct DLL_LINKAGE CModVersion
|
||||
}
|
||||
};
|
||||
|
||||
DLL_LINKAGE bool operator < (const CModVersion & lesser, const CModVersion & greater);
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user