From 71eb4a2041ef566013b3525930535ddc3198f861 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 20 Aug 2024 12:57:04 +0300 Subject: [PATCH] fix target gd version not working if it's set to * --- loader/src/loader/ModMetadataImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/src/loader/ModMetadataImpl.cpp b/loader/src/loader/ModMetadataImpl.cpp index e4029d37..c377f6b3 100644 --- a/loader/src/loader/ModMetadataImpl.cpp +++ b/loader/src/loader/ModMetadataImpl.cpp @@ -133,7 +133,7 @@ Result ModMetadata::Impl::createFromSchemaV010(ModJson const& rawJs // change all of this to the gd.needs(...) stuff gd.assertIs({ matjson::Type::Object, matjson::Type::String }); if (gd.isObject()) { - gd.needs(GEODE_PLATFORM_SHORT_IDENTIFIER) + gd.needs(GEODE_PLATFORM_SHORT_IDENTIFIER_NOARCH) .mustBe("a valid gd version", [](auto const& str) { return str == "*" || numFromString(str).isOk(); }) @@ -544,7 +544,7 @@ VersionInfo ModMetadata::getGeodeVersion() const { return m_impl->m_geodeVersion; } Result<> ModMetadata::checkGameVersion() const { - if (!m_impl->m_gdVersion.empty()) { + if (!m_impl->m_gdVersion.empty() && m_impl->m_gdVersion != "*") { auto const ver = m_impl->m_gdVersion; auto res = numFromString(ver);