patch manager: properly check patch versions

Also abort patch import of lower patch versions
This commit is contained in:
Megamouse 2020-06-19 15:38:51 +02:00
parent d3c6472c0f
commit bf978ac8ca
5 changed files with 80 additions and 23 deletions

View file

@ -69,4 +69,7 @@ namespace utils
uint to_hex() const;
std::string to_string() const;
};
// Generic version comparison (e.g. 0.0.5 vs 1.3)
int compare_versions(const std::string& v1, const std::string& v2, bool& ok);
}