Skip to content

Commit

Permalink
Generate schema compliant game versions from swinfo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 20, 2023
1 parent 3e8950a commit 278f427
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 278f427

Please sign in to comment.