Skip to content

Commit

Permalink
Merge #3969 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
2 parents 3e8950a + 278f427 commit 9addf80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.

- [Netkan] Re-sort module properties after merging (#3957 by: HebaruSan)
- [Netkan] Update and optimize meta tester and inflator images (#3958, #3968 by: HebaruSan; reviewed: techman83)
- [Netkan] Generate schema compliant game versions from swinfo.json (#3969 by: HebaruSan)

## v1.34.2 (Minkowski²)

Expand Down
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 9addf80

Please sign in to comment.