allow for gd '*' when parsing server response

This commit is contained in:
Fleeym 2024-02-27 03:14:01 +02:00
parent b2ced73010
commit a673fda267

View file

@ -62,7 +62,7 @@ Result<ServerModVersion> ServerModVersion::parse(matjson::Value const& raw) {
// Verify target GD version
auto gd = root.needs("gd").obj().needs(GEODE_PLATFORM_SHORT_IDENTIFIER).template get<std::string>();
if (gd != GEODE_GD_VERSION_STR) {
if (gd != GEODE_GD_VERSION_STR && gd != "*") {
return Err(
"Mod targets GD version {} but current is version {}",
gd, GEODE_GD_VERSION_STR