Skip to content

Recomps show their project's art, Show Game Names the game's - #400

Merged
elripalda merged 5 commits into
elripalda:mainfrom
Xarishark:feat/launcher-art-split-f5cda5
Nov 21, 2026
Merged

elripalda merged 5 commits into
elripalda:mainfrom
Xarishark:feat/launcher-art-split-f5cda5

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

The catalog is splitting each entry's art: game art stays in cover, hero, logo, icon (always the game itself), project art comes in project_cover, project_hero, project_logo, project_icon (the developer's own look, set on their website page), and developer_avatar comes separately. The launcher now reads both sets. The catalog doesn't publish the new fields yet, and a missing project field means the game's, so today's catalog looks exactly as before.

Where each picture comes from now:

  • Catalog and Library tiles, game page and background, Home banner, sidebar, Big Picture: your own Customize picture, else the project's, else the game's. With Show Game Names on: your own, else the game's, matching the game names. One helper (pickArt in ui/app.js) makes the pick for desktop and Big Picture alike.
  • Version picker icon: the project icon, else the game icon, else the cover (same setting).
  • One game of a multi-game entry: its own project picture, else its own game picture. It takes the recomp's project picture only for a kind it has no picture of, so a series' games don't all show one cover.
  • Desktop shortcut icon, Steam art and icon: the same pick in Rust (catalog::art_url), your own pictures first. Project pictures come from the catalog only, never from recomplauncher.json.
  • Turning Show Game Names on or off: rewrites the kept icon files that existing shortcuts point at, and the grid art of the launcher's games already in Steam (never shortcuts.vdf, so Steam can stay open; it shows them once it reloads its pictures).
  • Developer picture: only beside "By" on a recomp's page, desktop and Big Picture. A picture at the same address as developer_avatar is left out of the game and project sets, as a safety net: the catalog itself takes old avatar icons out.

Left on game art on purpose: Discord status (it shows the game's name). The ROM Manager isn't touched here.

No change to recomplauncher.json, its schema or the SDK docs: developers don't set art there.

How you tested it

  • cargo test passes (windows-vm: 891 passed)
  • node --test tests/*.test.cjs passes (bazzite-kde: 686 passed)
  • Tried it in the launcher (npm run dev): not yet. The catalog doesn't publish the new fields yet, so only the fallback path is live today.

New tests: catalog.rs and games.rs (the pick, the fallback, Show Game Names, no avatar as an icon, project art only from the catalog, a series' games), game-media.test.cjs and games.test.cjs (the same rules in the window, player pictures winning, the refresh wiring, the developer line).

Checklist

  • One change per pull request
  • No version bump or patch notes (those are done at release time)
  • It doesn't change what developers can write in recomplauncher.json

…e Names

The catalog is getting two sets of pictures: the game's in cover/hero/logo/icon and the
project's in project_*. Every catalog picture now goes through pickArt: the project's first,
the game's for any it lacks, the game's only with Show Game Names. A missing project field is
the game's, so today's catalog looks the same. Pictures the player set still win. A game of a
series takes the recomp's project picture only when it has no picture of its own.
catalog::art_url makes the launcher's pick (project first, game's with Show Game Names, never
the developer's picture) for shortcut and Steam art. A game of a series carries its own project
pictures from the catalog only, never from the developer's file. The kept shortcut icon notes
the address it came from and is fetched again in place when that changes, so shortcuts that
point at it change too.
Turning it on or off rewrites the kept icon of every game that has one (desktop shortcuts and
Steam entries point at that file) and the grid pictures of the launcher's games already in
Steam. Only the grid folder is written, never shortcuts.vdf, so Steam can stay open.
developer_avatar from the catalog (else their developer page's) is drawn only beside 'By' on a
recomp's page, also for a project without a developer page. It's never a picture of the game:
pickArt leaves out any picture that is the developer's.
with_game_art copied a game's /media/... paths as they were. fetch_bytes adds the site in front
anyway, but the old code made them full addresses on purpose: they are again, for game and
project pictures. The avatar check's comments say what it does: a safety net for a picture at
the developer's address; the catalog itself takes old avatar icons out.
@Xarishark
Xarishark marked this pull request as ready for review November 21, 2026 15:34
@elripalda
elripalda merged commit 6c2ecc2 into elripalda:main Nov 21, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/launcher-art-split-f5cda5 branch November 23, 2026 23:56
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.

2 participants