Skip to content

Game Jolt page and art, game settings on every Collection grid, lanes after a runtime switch, launch summaries (#822–#835) - #838

Merged
aaf2tbz merged 14 commits into
mainfrom
fix/issues-822-837
Nov 26, 2026
Merged

aaf2tbz merged 14 commits into
mainfrom
fix/issues-822-837

Conversation

@aaf2tbz

@aaf2tbz aaf2tbz commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #833. Closes #835 (the stale-lanes part; see Not done below). Part of #822 and #834.

Summary

  • Advanced settings still not in grid view #833 Game settings from every Collection grid. The gear the Steam Collection grid got in feat(library): game settings from the Collection grid #817 is now on the GOG, Epic, Windows Programs and Game Jolt Collection cards too. It opens the same settings (Graphics, Runtime, Advanced with Report a problem, Presentation). It sends SharpPreviewEvent::OpenGameSettings { source, id }, and the app selects the matching deck game and opens its settings. The embedded Game Jolt browser now hides while the popup is open.
  • FEX and x86 Builds graphics swapping #835 Stale lanes after a FEX | x86_64 switch. backend_host calls variant::set_from_reply while the new backend starts. So the app's later /status, in apply_backend_variant, never saw a change, and the deck pages kept the old runtime's deck_engine_options. That's why D3DMetal stayed on FEX and was missing on x86_64. The switch is now judged against the runtime the lists were built for (LiveState::lists_fex). On a switch the app reloads every Sharp source (SharpPreview::reload_for_runtime), rebuilds the deck, reloads the Steam library and recomputes the selected lane.
  • Game Jolt Steam Deck view SharpLibrary and Graphics update #822 Game Jolt brought back:
    • Own sidebar page. LibraryPage::GameJolt sits above Windows Programs, with a lightning bolt icon (icon-bolt.svg). Its Browse Game Jolt button opens the Game Jolt browser over the whole page, and the same button (Back to Library) closes it. The old Game Jolt Library Collection view (folder, sync, games list) is gone; the page's deck lists the games. Windows Programs now offers only Installers.
    • Art and names from Game Jolt. At download time the browser records the game page the download came from. Game Jolt hands downloads to its CDN, so that's the last game page a main-frame navigation left, when WKDownload.webView.URL is already the CDN's. After extraction, the app reads site-api/web/discover/games/<id>. The header is saved as the hero. The thumbnail becomes the card: a landscape thumbnail is drawn whole across a 600×900 card, over a darkened blur of itself. Both go in <game>/.metalsharp/gamejolt-{card,hero}.<ext>, with gamejolt.json (game id, page and title). A game whose page isn't known, including ones downloaded before, looks itself up via site-api/web/search/games by its folder name, once per launch, on an exact title or slug match only. The backend reports the art as cover_path (ahead of the executable's icon) and a new hero_path, and names the game by its Game Jolt title. Without a title it uses the folder name, with spaces for dashes and underscores. A custom name still wins. find_game_assets skips .metalsharp.
    • Sign in with Google. Game Jolt's Google sign-in redirects to accounts.google.com and back to gamejolt.com/x/social/callback. The browser now allows google.com and youtube.com in its main frame, and HTTPS frames while a Google page is showing. The user agent is unchanged.
    • Liquid Glass. The browser sits on the window's glass instead of the Collection view's black. Separately, each header control's glass was running up into the page's glass behind it, whose top edge sat just above the controls. Glass from the window's top edge now starts above the window (MSGlass.swift).
    • Browser toolbar. Back, forward, reload, the Games page and zoom from 50 to 200 % (setPageZoom). The browser fills the page, so it has no resize handle or Full height.
    • Current lanes. Game Jolt now offers D3DMetal, VKD3D / DXVK, Mullion (DXMT) and OpenGL on x86_64, and Mullion, VKD3D / DXVK and OpenGL on FEX. OpenGL (wine_bare) is accepted on x86_64 too. An older saved DXMT(32), D3D9 or DXVK engine still launches and shows as its lane (variant::x86_64_options, gamejolt_engine).
  • Collection views (GOG, Epic, Windows Programs):
    • Layout. Under Liquid Glass they sit on the window's glass. They no longer have the header's shared launch-settings gear; each card's gear covers those settings (Advanced settings still not in grid view #833). The "MetalSharp · Installers & Launchers" line above the title is gone.
    • Store cards (GOG, Epic, Game Jolt). The art fills the whole card, and an installed game has the deck's graphics dropdown with Play beside it. The ⚗ bottle panel is gone: Choose EXE is in the game's settings, and an Epic game keeps its mouse mode on the card.
    • Uninstall. The game's settings have a new Uninstall tab, which opens the art menu's uninstall prompt (can_uninstall). The GOG header's prefix button is gone, since the GOG button's settings uninstall GOG.
    • Store button menu. It's nearly opaque under Liquid Glass, so its item reads.
  • Easier and Detailed Logging #834 Launch summary. spawn_direct_game covers Steam games and external launches, Game Jolt included. It writes a summary block to logs/<date>.log, which Report a problem already zips. The block has the runtime, route (and the environment route when they differ), MetalSharp and MetalSharp Wine versions, executable, folder, Wine's command line, and the rendering environment (WINE*, MS_, METALSHARP_, DXMT_, MULLION_, DXVK_, VKD3D_, MTL_, MVK_, D3DM_, ROSETTA_, FEX_, DYLD_, SteamAppId). A variable whose name contains TOKEN, SECRET, PASSWORD, AUTH, COOKIE, CREDENTIAL or KEY is left out. The child formats on its stack and uses write(2); the path and timestamp are computed before fork. With Graphics runtime logs on, the stderr log gets the same block.
  • Same area: the FNA and Rain World diagnostic launch headers printed a literal \n.
  • Docs: CHANGELOG Unreleased, docs/architecture.md Game Jolt row, docs/user-guide.md, and the regenerated backend-route inventory.

Not done here

PR Readiness (MANDATORY)

  • Real-game launch test completed for game/runtime/graphics/compatibility changes: not done (no game launched). The later commits were built and run in the FEX app on a Mac. Checked there: the Game Jolt page and browser, Back to Library, the sidebar order and icon, and the header glass on the Steam, Game Jolt and Windows Programs pages. Also the Google sign-in page loading in the browser, and an already-downloaded game (The Joy of Creation: Story Mode) picking up its Game Jolt hero, portrait card and title.
  • No hardcoded paths, secrets, or absolute /Users/... paths introduced
  • Config/rules TOML validated if configs/mtsp-rules.toml, configs/mtsp-rules-fex.toml or DLL maps changed (N/A: not changed)
  • Version metadata in sync if version bumped (N/A: no version bump)
  • Bottle/runtime migration and launch behavior preserved. Saved Game Jolt engines keep running, and nothing about prefixes changes. Rollback: revert this PR.
  • Docs / compatibility matrix updated for user-facing changes (CHANGELOG, architecture, user guide)
  • Regression test added for each bug fix

Tests

  • cargo fmt --check, and inventory-backend-routes.py --check.
  • cargo test on Linux with four macOS-only functions stubbed (getmntinfo, sysctlbyname, proc_listallpids and the glass bridge): 157 passed. The 3 failures are the macOS-only ditto/proc tests, which fail the same way on main there.
  • New Rust tests:
  • C: runtime_routes_test now expects the new Game Jolt lane ids and names. It also checks OpenGL being accepted, m32/dxvk reading as their lanes, and the new launch_summary_test, which covers the summary format and credential filtering. I ran the summary test standalone with clang; the full make test needs macOS. clang-format-diff is clean on the changed lines.

On a Mac (later commits)

  • make -C app/src-c test, and with VARIANT=fex: both pass, including a new Game Jolt naming test. One existing process-group test (setpgid on a test child) failed once at a varying line and passed on rerun, so it's a timing race in that test.
  • cargo test: 163 passed (and after the Collection changes). New tests: gamejolt_signs_in_with_google, a_folder_finds_its_game_by_title_or_url_name and a_landscape_thumbnail_becomes_a_portrait_card.

Risk

  • The Game Jolt art call uses Game Jolt's site API (site-api/web/discover/games/<id>). If it changes or refuses, the game keeps its executable's icon, and Change Image still works.
  • The summary adds a few lines per launch to the day's log.
  • Moving Game Jolt to its own page takes its games off the Windows Programs deck.
  • The by-name lookup sends a game folder's name to Game Jolt's search, for games without saved Game Jolt data, once per launch.

…ter a runtime switch, launch summaries

#833: the GOG, Epic, Windows Programs and Game Jolt Collection cards get the
Steam Collection grid's gear, which selects the game and opens its settings
(SharpPreviewEvent::OpenGameSettings). The Game Jolt browser hides under them.

#835: the backend host records a new backend's runtime as it starts, so
apply_backend_variant never saw a FEX | x86_64 switch and the deck pages kept
the old runtime's lanes (D3DMetal on FEX, none on x86_64) until a relaunch.
The switch is now judged against the runtime the lists were built for
(lists_fex), and the Sharp Library, the Steam library and the selected lane
are loaded again from the new backend.

#822: Game Jolt is its own sidebar page with Browse Game Jolt. A game
downloaded in the Game Jolt browser gets its thumbnail as card art and its
header as hero art from its Game Jolt page (.metalsharp/gamejolt-{card,hero}.*,
which the backend reports before the executable's icon). The browser has back,
forward, reload, home, zoom and full height, and opens at half the panel.
Game Jolt games get the runtime's lanes (VKD3D / DXVK, Mullion, OpenGL, and
D3DMetal on x86_64); older saved lanes still run and show as their lane's.

#834: each direct game launch writes a summary to the day's log (runtime,
route, versions, executable, Wine's command line, and the rendering
environment, without credential-named variables), and to the runtime log
when that is on. The FNA and Rain World log headers printed a literal \n.
A test window has no native view, so Liquid Glass's paint panicked there on macOS.
…s above the header

Browse Game Jolt opens the Game Jolt browser over the whole Game Jolt page,
and the same button (Back to Library) closes it. The Game Jolt Library view
it opened before, with its folder, sync and games list, is gone: the page
lists the games. The browser has no resize handle or Full height now that it
fills the page. Game Jolt is above Windows Programs in the sidebar.

Liquid Glass: glass blends with glass near it, and the page's glass began at
the window's top edge, just above the header's controls, so each control ran
up into it in the theme's color. A surface from the top edge now starts
above the window.
The Collection view's opaque background stayed behind the browser, black
around it where every other page shows the window's glass.
Game Jolt's Sign in with Google redirects to accounts.google.com and back to
gamejolt.com/x/social/callback. The browser only allowed Game Jolt's hosts
in its main frame and no frames at all, so the redirect was cancelled. It now
allows Google's sign-in hosts (google.com, youtube.com), and HTTPS frames
while Google's sign-in page shows.
…fore; a lightning bolt

A download Game Jolt hands to its CDN started on the CDN's address, so the app
never knew its game page and the game kept its executable's icon and its
download's folder name. The browser now remembers the game page it leaves,
and a game whose page isn't known looks itself up on Game Jolt by its
folder's name (an exact title or URL-name match only), once a launch for
games already in the library.

The game's Game Jolt title is saved with its art (.metalsharp/gamejolt.json),
and the backend names the game by it; without it, by its folder, with spaces
for dashes and underscores. The Game Jolt sidebar page has a lightning bolt.
Game Jolt's thumbnails are landscape, and the library's cards portrait: the
card cropped the thumbnail to its middle and cut its title off. The card is
now the whole thumbnail across a 600x900 card, over a darkened blur of it.
…s gear

Under Liquid Glass the GOG, Epic and Windows Programs Collection views drew
their own black background over the window's glass. The header's gear opened
the shared launch settings, which each card's gear now covers (#833); it and
the code only it used are gone.
… Uninstall

GOG, Epic and Game Jolt Collection cards drew their art as a banner over a
dark bar. The art now fills the card, with its title and actions over a fade
at its foot. An installed game's card has Play across it and, under it, the
deck's graphics dropdown beside Uninstall, in place of the bottle toggle and
its panel (Choose EXE is in the game's settings; an Epic game keeps its mouse
mode). GOG's header button that removes its prefix reads Remove Prefix.
…s settings

A store card's installed game now has its graphics lane with Play beside it,
and no Uninstall: a game's settings have an Uninstall tab (GOG, Epic, Game
Jolt and Windows programs, as the art menu's Uninstall…), which opens the
deck's uninstall prompt. The GOG Collection header's prefix button is gone,
since the GOG button's settings uninstall GOG, along with the card and header
confirms only they used. The store button's menu is nearly opaque under
Liquid Glass, where its one item washed out.
The Collection changes removed the cards' and header's own calls (shared
launch preferences, removing GOG's prefix, choosing a card's executable) and
moved the rest; the inventory still listed them.
@aaf2tbz
aaf2tbz merged commit d8382fc into main Nov 26, 2026
6 checks passed
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.

FEX and x86 Builds graphics swapping Advanced settings still not in grid view

1 participant