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

Support partial versions

This commit is contained in:
nordsoft
2023-09-01 04:36:53 +04:00
parent ea7ab9d5ed
commit e9ba1d73d1
2 changed files with 29 additions and 8 deletions

View File

@ -20,9 +20,11 @@ VCMI_LIB_NAMESPACE_BEGIN
struct DLL_LINKAGE CModVersion
{
int major = 0;
int minor = 0;
int patch = 0;
static const int Any = -1;
int major = Any;
int minor = Any;
int patch = Any;
CModVersion() = default;
CModVersion(int mj, int mi, int p): major(mj), minor(mi), patch(p) {}