diff --git a/loader/src/loader/ModMetadataImpl.cpp b/loader/src/loader/ModMetadataImpl.cpp index c377f6b3..51181915 100644 --- a/loader/src/loader/ModMetadataImpl.cpp +++ b/loader/src/loader/ModMetadataImpl.cpp @@ -228,6 +228,16 @@ Result ModMetadata::Impl::createFromSchemaV010(ModJson const& rawJs } for (auto& incompat : root.has("incompatibilities").items()) { + bool onThisPlatform = !incompat.has("platforms"); + for (auto& plat : incompat.has("platforms").items()) { + if (PlatformID::coveredBy(plat.get(), GEODE_PLATFORM_TARGET)) { + onThisPlatform = true; + } + } + if (!onThisPlatform) { + continue; + } + Incompatibility incompatibility; incompat.needs("id").mustBe(ID_REGEX, &ModMetadata::Impl::validateOldID).into(incompatibility.id); incompat.needs("version").into(incompatibility.version);