Skip to content

xcl run: the launcher menu can pick the game's folder - #607

Closed
simnJS wants to merge 1 commit into
xcl-dev:mainfrom
simnJS:launcher-folder-picker
Closed

simnJS wants to merge 1 commit into
xcl-dev:mainfrom
simnJS:launcher-folder-picker

Conversation

@simnJS

@simnJS simnJS commented Nov 24, 2026 •

Copy link
Copy Markdown

Opened from Explorer, xcl.exe offered a file dialog for the game's exe or MicrosoftGame.config only, while xcl run itself takes the game's folder. The menu now has "Add a game folder…" (the default when there is no last game): the standard Windows folder picker (IFileOpenDialog with FOS_PICKFOLDERS, through COM – no dialog library is imported by xcl.exe), and the folder runs as xcl run <folder> does.

Ported from theaustinayers' modified build (theaustinayers/xcl, v0.1.0-mod.10); credited with Co-authored-by in the commit.

What is in it

  • xcl run: the launcher menu can pick the game's folder (+33 / -5): crates/xcl/src/main.rs (Choice::Folder, the menu button, pick_game_folder), crates/xcl/Cargo.toml (the windows crate's Win32_UI_Shell / Win32_UI_Shell_Common features for IFileOpenDialog; no new dependency), README.md (the menu).
  • No unit test: the change is the menu's button and the system dialog, no logic of its own; tested by hand below.

Tested

  • NVIDIA GeForce RTX 4080 SUPER (driver 621.01), AMD Ryzen 9 7950X3D, 63 GB; Windows 11 Pro build 26300; Rust 1.99.1 (stable-x86_64-pc-windows-msvc); DXC 1.8.2502.11.
  • scripts/test.ps1 (debug) on ffb5f47: 684 passed, 0 failed, 41 ignored (a first run had 1 failure in real::readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state, lib code this PR does not touch, while other GPU tests ran on the machine; it passed in 3 runs after).
  • SKIPPED on this adapter (no wave64): gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware.
  • By hand: xcl.exe started in a console of its own (as from Explorer), "Add a game folder…", the retail title's folder picked: last-game.txt holds the folder and the title started from it (game: …\game_scarlett_master.exe).

Regression run

xcl-smoke v1
commit: 9ce2070eccf436d7bd38601c90407da447df34f3
gpu: NVIDIA GeForce RTX 4080 SUPER
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1568 (PresentX 1568)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14799 MB
xcl-smoke v1
commit: ffb5f47894611e9eff04066e352c0d26820f5d6e
gpu: NVIDIA GeForce RTX 4080 SUPER
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1519 (PresentX 1519)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14780 MB

Same title for 60 s, XCL_NETWORK=0 (xcl run from the command line: the menu is not shown in these runs).

Not tested

  • "Run again" after a folder was picked, Windows 10, a folder on a network share.

AI use

  • Claude Code with Claude Opus 5.5: ported the change from the fork, ran the test suite, the hand test's setup and the regression runs, and wrote this description.

Opened from Explorer, xcl.exe offered a file dialog for the game's exe
or MicrosoftGame.config only; `xcl run` itself takes the game's folder.
The menu now has "Add a game folder…" (the default when there is no
last game): the standard Windows folder picker (IFileOpenDialog with
FOS_PICKFOLDERS, through COM – no dialog library is imported by
xcl.exe), and the folder runs as `xcl run <folder>` does.

Cargo.toml: the windows crate's Win32_UI_Shell features for
IFileOpenDialog (no new dependency).

From theaustinayers' modified build (theaustinayers/xcl, v0.1.0-mod.10).

Assisted-by: Claude Code (Claude Opus 5.5)
Co-authored-by: theaustinayers <153482135+theaustinayers@users.noreply.github.com>
@futurepro62

Copy link
Copy Markdown

Tested exact head ffb5f47 (on its base 9ce2070).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 684 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

Not tested

  • The launcher menu itself (no interactive run), a retail title or scripts/smoke.ps1 (no title on this machine), AMD, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@MesshM

MesshM commented Nov 24, 2026

Copy link
Copy Markdown

Test run of ffb5f47894611e9eff04066e352c0d26820f5d6e on AMD RDNA4. I merged it onto current main f4ce27c locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 657 passed, 3 failed, 21 ignored, exit code 101; 0 SKIPPED
  • the 3 failures: placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory. These three also fail on main f4ce27c with no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first is placed_title_textures_share_vram_and_preserve_pixels at cubemap extra_pages must be reused at same va; the other two are PoisonErrors from the lock it poisons (Tests: a panicking title-texture test no longer poisons the others #673 addresses the cascade, Tests: check cubemap tile reuse independently of idle page reclamation #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at f4ce27c, 2 of 6 at d852f9a and 1 of 3 at 1387b4b on this machine.
  • the launcher tests pass (the folder dialog itself needs a desktop and was not opened).

Review: IFileOpenDialog with FOS_PICKFOLDERS needs COM on the thread; main.rs already calls CoInitializeEx(COINIT_APARTMENTTHREADED) before the menu, so the call has its apartment. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

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.

3 participants