Repository navigation
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.
6 of 7 tasks
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 after Windows Programs, with a Browse Game Jolt button that opens its Collection and browser. Windows Programs now offers only Installers.WKDownload.webView.URL). After extraction, the app readssite-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 withgamejolt.json(game id and page). The backend reports them ascover_path(ahead of the executable's icon) and a newhero_path.find_game_assetsskips.metalsharp.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.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).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.Risk
site-api/web/discover/games/<id>). If it changes or refuses, the game keeps its executable's icon, and Change Image still works.