Skip to content

feat!: support multiple namespaces for the game#16

Closed
imLinguin wants to merge 5 commits into
masterfrom
feat/install_sandboxes
Closed

feat!: support multiple namespaces for the game#16
imLinguin wants to merge 5 commits into
masterfrom
feat/install_sandboxes

Conversation

@imLinguin

@imLinguin imLinguin commented May 15, 2025

Copy link
Copy Markdown
Member

This is a breaking change that allows games to contain more than one asset per platform - meaning multiple sandboxes aka namespaces.

This involves breaking changes to how metadata.json is stored, as well as additional fields to installed game classes.
Sidecar configs were also separated into per-namespace maps.

Changes to metadata mean older versions of legendary will probably fail to read those files. I can try to make this as much backwards compatible as possible if desired.

Additional remarks:

  • info and install commands support --namespace arguments now
  • info output was slightly changed to incorporate multiple assets per platform
    • latest_version and manifest keys correspond to desired --namespace, by default its first public asset found
    • namespaces key is an array of available namespaces, their details and times when given license was obtained by user
    • platform_versions is now a {platform: [...assets]} object, instead of just versions

imLinguin added 2 commits May 15, 2025 19:02
and more data to json output of platform_versions, also always return namespace data

@CommandMC CommandMC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to metadata mean older versions of legendary will probably fail to read those files. I can try to make this as much backwards compatible as possible if desired.

I'd say do this, yes

Comment thread legendary/cli.py Outdated
Comment thread legendary/cli.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants