Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate schema compliant game versions from swinfo.json #3969

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Netkan/Transformers/SpaceWarpInfoTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ public IEnumerable<Metadata> Transform(Metadata metadata, TransformOptions opts)
if (GameVersion.TryParse(swinfo.ksp2_version.min, out GameVersion minVer)
|| GameVersion.TryParse(swinfo.ksp2_version.max, out maxVer))
{
log.InfoFormat("Found compatibility: {0}–{1}", minVer, maxVer);
ModuleService.ApplyVersions(json, null, minVer, maxVer);
log.InfoFormat("Found compatibility: {0}–{1}", minVer?.WithoutBuild,
maxVer?.WithoutBuild);
ModuleService.ApplyVersions(json, null, minVer?.WithoutBuild,
maxVer?.WithoutBuild);
}
var moduleDeps = (mod.depends?.OfType<ModuleRelationshipDescriptor>()
.Select(r => r.name)
Expand Down
Loading