victory: a menu when opened from Explorer, instead of help that closes at once #959
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!959
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-959"
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?
@EduBertozzi on GitHub · 2026-11-24 14:28 UTC · original
EduBertozzi:ux/launcher-menu→main· +1386 −0 · 4 files · 7 commits · openWhat
When
victory.exeis opened from Explorer (no arguments, in a console of its own), it now shows a small menu. Before, clap's usage flashed and the window closed at once, which is the confusion in #527. Every command-line use is unchanged. The menu shows only when the process has its console to itself (GetConsoleProcessList), or whenVICTORY_MENU=1is set.1 Run a game: drag the title's
.exeonto the window or type its path. The path is cleaned of quotes and PowerShell's& '...'. The game runs as a childvictory run <exe> --executein the same console, so a crash or an exit of the title leaves the menu up. The menu then shows how the run ended (the exit code, in hex for an NTSTATUS such as0xC0000005) and waits for Enter. Ctrl+C stops the run, not the menu.2 Run again: the last game, remembered in the data folder while the file still exists.
3 Check this PC: what most "can't run" issues ask, each line with a one-line hint:
Cthen Enter copies the result as plain text for a GitHub report, with the profile folder written as%USERPROFILE%.4 Open the data folder (saves,
crashes.log).S Set the game folder: writes
[paths].game_dirto the config file the tools read (VICTORY_CONFIG, elsevictory.tomlbeside a double-clickedvictory.exe). A dropped.exestands for its folder. Only that line changes, so comments and other keys stay. A folder inside the repository is refused with the asset-policy message.K Keyboard controls: the keyboard's stand-in pad, as
gameinput.rsmaps it and the README lists it.M Console: switches Series X / Series S for runs (
--console). The choice is remembered.S, K and M follow @sahajiscoding's launcher in #1330.
The colours are an original 24-bit gradient, nothing from the title.
NO_COLORturns them off,CLICOLOR_FORCE=1turns them on, and the menu stays plain where the console has no VT support. Hints wrap to the console width. Proposed and discussed in #910. @MichaelSmithAI's follow-up from there is included: on Windows 10, the Agility hint shows only when SM 6.6 is missing.The app gains a
[target.'cfg(windows)'.dependencies]block. It enables thewindows-sysfeatures Console, DataExchange, Memory and Registry, and pulls inwindowswith Direct3D12 and Dxgi. The test-only dependency istempfile.Tested
Native Windows 10 22H2 (19045), GTX 1060 6 GB, MSVC:
cargo test -p victory: 12 menu tests. They cover:[paths], apostrophes, CRLF), each read back withtoml;cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.I drove the built
victory.exewithVICTORY_MENU=1:malformed image, and the menu shows exit code 1 and carries on.Merged with #175 plus the 1.620.2 runtime beside the executable, the same check reports SM 6.6 and Windows 10 as ready, with no conflicts between the two.
@MichaelSmithAI ran the menu and CLI paths under Wine (#910).
Detection: started with no arguments in a console of its own (
Start-Process, as Explorer starts it), it stays up waiting at the menu. Started with no arguments from an existing PowerShell console, it prints clap's usage and exits 2, as before.🤖 Generated with Claude Code
@Zipettte on GitHub · 2026-11-24 16:30 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
ea3af37:cargo test -p victorypasses, 10 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:Cargo.lock,apps/victory/src/main.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
@denkencar-sketch on GitHub · 2026-11-25 07:33 UTC · original
Tried this at head
6614cc2on Windows 11 (build 26200), Radeon 8060S. It builds, the 12menutests pass, andVICTORY_MENU=1with Check this PC reports SM 6.6, mesh shaders and waves up to 64 lanes. Thanks for this.One bug in S (Set the game folder), in
set_game_dir:It finds the table with
l.trim() == "[paths]". A header that is valid TOML but not exactly that string is not found, so the function appends a second[paths]table and the file no longer parses (duplicate table).Reproduced by calling
set_game_dir(text, Path::new("C:\\new"))and parsing the result astoml::Table:[paths] # where things are(thengame_dir = 'D:\old')[paths]appears twice[ paths ][paths]followed by a tabOutput for the first case:
Any tool that then loads the config is handed invalid TOML.
Possible fix: recognise the header by stripping a trailing
#comment and trimming inside the brackets before comparing (and the same for theheaderclosure that finds the end of the table), or edit the value with thetomlcrate, which is already a dev-dependency here. A test with the two headers above would cover it.Two smaller notes, not confirmed as bugs:
copy_to_clipboardopens the clipboard with a null owner, then callsEmptyClipboard. TheOpenClipboarddocs say that makesSetClipboardDatafail; in practice that pattern often works, but passingGetConsoleWindow()as owner would be safer.adapter()namesEnumAdapters1(0), whilegpu()usesHost::new(false)(default device, andVICTORY_WARP=1switches it to WARP). On a PC with two GPUs, or withVICTORY_WARPset, the name and the shader/wave lines could describe different adapters. Same adapter on a single-GPU PC.Not tried: Explorer double-click detection, the clipboard copy itself, or running a game from the menu.
AI-assisted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.