mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix target gd version not working if it's set to *
This commit is contained in:
parent
07001bf36f
commit
71eb4a2041
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ Result<ModMetadata> 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<std::string>("a valid gd version", [](auto const& str) {
|
||||
return str == "*" || numFromString<double>(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<double>(ver);
|
||||
|
|
Loading…
Reference in a new issue