xcl-menu: a themed menu for a controller that starts games with xcl run #3457
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3457"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by ArtuArtaza on 2026-11-29T20:05:06Z.
A menu for the couch: it lists the games in the folders you add, starts one with
xcl run <folder>, and prepares a game's shaders ahead of time withxcl pso-precompile <folder>, with a progress bar, a queue and pause. Keyboard, mouse and controller; five layouts drawn from theme files. It is a program of its own (crates/xcl-menu) that startsxcl.exefrom outside: nothing of XCL is linked or changed, and it is not a member of the workspace, so the rootCargo.toml,Cargo.lockand CI time are untouched.This is a draft, opened to ask whether such a menu is wanted in the tree. It is far over the size target (8,025 lines without its
Cargo.lock, in one commit) and is here to be looked at, not merged as it is. If it is wanted I will split it into stacked PRs in this order: the window with the Home layout, settings, library and Play; the shader warm-up; then one PR each for the Cover Flow, Blades, Orb and Classic Blades layouts; controller input; the inspection options; the docs. If it is not, it stays in my fork and this can be closed. It does not bear on the world-load goal (#1833), so it can wait.Related: #1719 (
xcl-gui, an egui window for the log, the settings and updates) asks the same question for a different program, and #1500 adds a developer launcher with presets. This one does neither of those jobs: it is the screen you start a game from with a controller. I am glad to fold it into either, or to drop it in favour of one of them.What is in it
crates/xcl-menu/src/model.rs: the settings file, the library scan (a game is a folder withMicrosoftGame.config), findingxcl.exe, startingxcl run, with testscrates/xcl-menu/src/theme.rs,themes/*.toml: theme files withinherits, the six built-in themes, the user's own from%LOCALAPPDATA%\XCL\menu\themes, with testscrates/xcl-menu/src/warm.rs: runningxcl pso-precompile, reading its output into progress, the queue, pause, and each game's last run inwarm.toml, with testscrates/xcl-menu/src/pad.rs: controllers throughgilrs(stick and D-pad as directions with repeat, the face buttons by position), with testscrates/xcl-menu/src/ui/mod.rs,kit.rs,motion.rs,pages.rs: the window, the targets the arrow keys walk, the buttons' states and eases, the pages every layout shares, with testscrates/xcl-menu/src/ui/home.rs,coverflow.rs,blades.rs,orb.rs,classic.rs,src/gfx.rs: the five layouts, and the radial fills the program paints itselfcrates/xcl-menu/src/main.rs: the command line (--demo,--theme,--page, and--state,--transition,--offscreenfor looking at a state or taking pictures)crates/xcl-menu/README.md,Cargo.toml,Cargo.lock(8,912 lines, generated), and outside the crate only a pointer inREADME.mdand a row inTHIRD_PARTY.mdgpui-kit(Apache-2.0; the window and drawing),gilrs(controllers),imageandsmallvec(the fills the program paints itself),tomlandserde(themes and settings)Tested
8eadbd9, no uncommitted changes, AMD Radeon RX 6700 XT (driver 32.0.21045.29003), AMD Ryzen 5 5600X, Windows 11 Pro build 26200.9974, Rust 1.100.0 (0ef1bc386 2026-11-09), debugcrates/xcl-menu:cargo build: no warnings.cargo test: 38 passed, 0 failed, 0 ignored. The tests open no window and use no GPUcargo tree --target x86_64-pc-windows-msvc -e normal,build: 405 crates, each with a licence of the list inTHIRD_PARTY.md(MIT, Apache-2.0, BSD, Zlib, Unicode-3.0, CC0-1.0, MPL-2.0, Unlicense, 0BSD, BSL-1.0, or one of them as an alternative); none is GPL-2.0-onlygit diff --check: cleanRegression run
crates/xcl, and not the rootCargo.tomlorCargo.lockNot tested
xcl pso-precompilerun to its end, its progress, pause, the queue)cargo test --workspace -- --test-threads=4was not run: the workspace's code is unchanged and the GPU was in usemainatfa204595, not rebased onto today'smain;git merge-treefinds no conflict with0fe06eb0AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:33:26Z.
Review (head
8eadbd99, diff triaged rather than read line by line; draft, not built or run):crates/xcl/src/launcher.rs,run_from_menu), and open #1719 (xcl-gui) and #1500 (developer launcher) cover similar ground.Cargo.lock, far past the 800-line limit. The author's own split (window + Home + settings / library / Play; warm-up; one PR per layout; controller input; inspection options and docs) would work, with a CI job for the crate first.crates/xcl-menu(it sits outside the workspace via an empty[workspace]table), so the reported tests have only run on the author's machine.tokio,hyper,rustls,ring) andgpui-pre-*/gpui-fast-*forks. Their licences and provenance can't be read from a lockfile, and nobody has checked whatgpui-kit-assetsbundles (fonts, icons).Fine: it doesn't touch
crates/xcl, the rootCargo.tomlorCargo.lock; no binaries, fonts or images are committed;THIRD_PARTY.mdandREADME.mdwere updated.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:57:11Z.
Triage (#1607) – head
8eadbd9Overlaps in purpose with #1500 (PowerShell developer launcher with presets) and #1719 (
xcl-gui, an egui window for the log, settings and updates): all three are front-ends that startxcl run. This one is a separate controller-oriented crate kept out of the workspace, so it is a different approach, not the same change. The 67 lines shared with #2500 areCargo.lockentries.As the description says, it is far over the size limit (about 8,000 lines plus an 8,912-line lockfile, one commit) and CI does not build it; it needs the maintainer's decision on whether a menu belongs in the tree, then the proposed split.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.