Repository navigation
Game Jolt page and art, game settings on every Collection grid, lanes after a runtime switch, launch summaries (#822–#835) - #838
Merged
Merged
Conversation
…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.
This was referenced Nov 24, 2026
…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.
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #833. Closes #835 (the stale-lanes part; see Not done below). Part of #822 and #834.
Summary
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.backend_hostcallsvariant::set_from_replywhile the new backend starts. So the app's later/status, inapply_backend_variant, never saw a change, and the deck pages kept the old runtime'sdeck_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.LibraryPage::GameJoltsits 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.WKDownload.webView.URLis already the CDN's. After extraction, the app readssite-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>, withgamejolt.json(game id, page and title). A game whose page isn't known, including ones downloaded before, looks itself up viasite-api/web/search/gamesby its folder name, once per launch, on an exact title or slug match only. The backend reports the art ascover_path(ahead of the executable's icon) and a newhero_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_assetsskips.metalsharp.accounts.google.comand back togamejolt.com/x/social/callback. The browser now allowsgoogle.comandyoutube.comin its main frame, and HTTPS frames while a Google page is showing. The user agent is unchanged.MSGlass.swift).setPageZoom). The browser fills the page, so it has no resize handle or Full height.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).can_uninstall). The GOG header's prefix button is gone, since the GOG button's settings uninstall GOG.spawn_direct_gamecovers Steam games and external launches, Game Jolt included. It writes a summary block tologs/<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 useswrite(2); the path and timestamp are computed beforefork. With Graphics runtime logs on, the stderr log gets the same block.\n.docs/architecture.mdGame Jolt row,docs/user-guide.md, and the regenerated backend-route inventory.Not done here
app_sourcealready prefers a Wine app inResources, so a combined DMG would mostly be a packaging change. I left it for you.logs/setup-metalsharp-wine.logfrom an affected switch.gamejolt.jsonkeeps each game's id and page for that.PR Readiness (MANDATORY)
/Users/...paths introducedconfigs/mtsp-rules.toml,configs/mtsp-rules-fex.tomlor DLL maps changed (N/A: not changed)Tests
cargo fmt --check, andinventory-backend-routes.py --check.cargo teston Linux with four macOS-only functions stubbed (getmntinfo,sysctlbyname,proc_listallpidsand the glass bridge): 157 passed. The 3 failures are the macOS-onlyditto/proctests, which fail the same way on main there.a_store_collection_card_opens_its_game_settings: the gpui window test for Advanced settings still not in grid view #833.lists_built_for_the_other_runtime_are_stale: the FEX and x86 Builds graphics swapping #835 test.older_lane_lists_read_as_todays_lanes.gamejolt_art_testsset: page id parsing, thumbnail and header picking, saved art replacing earlier art, and only images being kept.runtime_routes_testnow expects the new Game Jolt lane ids and names. It also checks OpenGL being accepted,m32/dxvkreading as their lanes, and the newlaunch_summary_test, which covers the summary format and credential filtering. I ran the summary test standalone with clang; the fullmake testneeds macOS.clang-format-diffis clean on the changed lines.On a Mac (later commits)
make -C app/src-c test, and withVARIANT=fex: both pass, including a new Game Jolt naming test. One existing process-group test (setpgidon 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_nameanda_landscape_thumbnail_becomes_a_portrait_card.Risk
site-api/web/discover/games/<id>). If it changes or refuses, the game keeps its executable's icon, and Change Image still works.