Skip to content

ListVersions crashes on nonstandard -v probe output (semver.rcompare throws) #148

Description

@Zaldaryon

ListVersions sorts entries with semver.rcompare on the raw string from the game binary's -v probe. Unreleased or custom builds can emit nonstandard version strings that semver.rcompare rejects with a thrown exception, producing a white screen.

The register-a-folder feature (#138) makes this path more common, since its stated use case is pointing at unreleased builds. Guard the sort with semver.valid() or semver.coerce() before comparing, and push unparseable entries to the end of the list instead of crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions