Skip to content

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

Open
aaf2tbz wants to merge 2 commits into
mainfrom
fix/issues-822-837
Open

aaf2tbz wants to merge 2 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 after Windows Programs, with a Browse Game Jolt button that opens its Collection and browser. Windows Programs now offers only Installers.
    • Art from Game Jolt. At download time the browser records the page the download started from (WKDownload.webView.URL). After extraction, the app reads site-api/web/discover/games/<id> and saves the thumbnail as the card and the header as the hero. They go in <game>/.metalsharp/gamejolt-{card,hero}.<ext>, along with gamejolt.json (game id and page). The backend reports them as cover_path (ahead of the executable's icon) and a new hero_path. find_game_assets skips .metalsharp.
    • Browser toolbar. Back, forward, reload, the Games page, zoom from 50 to 200 % (setPageZoom) and Full height. The browser opens at 50 % of the panel instead of 24 %. Game Jolt cards use the 9:16 banner the other stores use.
    • 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).
  • 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. Everything was built and tested on Linux; the macOS-only paths (WebKit toolbar and download URL, the C backend build) are unverified on a Mac.
  • 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.

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.

…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.
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