Repository navigation
victory: a menu when opened from Explorer, instead of help that closes at once - #7
Merged
Merged
Conversation
…s at once Port of EduBertozzi's ux/launcher-menu as PR Marvisak#959 (upstream issue Marvisak#910, part 2), squashed from its seven commits, base ffe310e; the diff applies as-is. When victory.exe is opened from Explorer (no arguments, a console of its own, checked with GetConsoleProcessList, or forced with VICTORY_MENU=1), it shows a menu instead of clap's usage that closes at once. Every command-line use is unchanged. The menu runs a game as a child victory run <game> --execute in the same console, so a crash leaves the menu up and reports the exit code (hex for an NTSTATUS); "Check this PC" answers the questions most "can't run" issues ask, with one-line hints; the Agility runtime hint only appears when SM 6.6 is missing. Neither the runtime nor the GPU crates are touched: it is apps/victory plus its dependencies. Co-authored-by: Eduardo Bertozzi <bertozzidudu@gmail.com> Co-authored-by: openhands <openhands@all-hands.dev>
MagiccConch
marked this pull request as ready for review
November 24, 2026 20:52
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.
Implements part 2 of (upstream tracking) Marvisak#910 (upstream PR: Marvisak#959). Part 1, issue forms, is intentionally not included — the upstream author withdrew it in favor of the existing upstream PRs #9/Marvisak#113/Marvisak#380/Marvisak#543.
What changed
Port of EduBertozzi's
ux/launcher-menu(head6614cc26), squashed from its seven commits; +1386/−0 across four files, none of them runtime code:apps/victory/src/menu.rs(new, ~1358 lines): the menu. Shown when the process owns its console (GetConsoleProcessList— i.e. a double-click from Explorer) or whenVICTORY_MENU=1is set. Options: run a game (path cleaned of quotes/PowerShell& '...'wrappers), run again (last game remembered in the data folder), "Check this PC" (Windows build, GPU name/driver, SM 6.6/mesh/wave-size probe, with one-line hints — the Agility-runtime hint only appears when SM 6.6 is actually missing, after MichaelSmithAI's Wine review), open the data folder, quit. A game runs as a childvictory run <exe> --executein the same console, so a crash orExitProcessleaves the menu up; the run's exit code is reported (hex for NTSTATUS, e.g.0xC0000005). 12 unit tests.apps/victory/src/main.rs(+6):menu::wanted()hook before clap parsing; every explicit command-line use is unchanged.apps/victory/Cargo.toml(+18):windows-sys/windowsfeatures undercfg(windows), andtempfile/tomldev-dependencies for the tests.Cargo.lock(+4): the new dependency edges.Why
A double-click on
victory.exeprinted clap usage and closed the window instantly — the confusion in upstream Marvisak#527. "Check this PC" answers what most "can't run" issues ask for.Validation here
main(verified base-file drift: none inapps/victory).cargo checkandcargo clippy -- -D warnings, full workspace,x86_64-pc-windows-msvc,--all-targets, both with and without--all-features— clean (this type-checksmenu.rsand its tests, which are Windows-gated).cargo fmt --check -p victory— clean.victory-gpudoes not compile for the Linux host target on cleanmain(host_resourceis#[cfg(windows)]with a Linux-visible caller), socargo test -p victorycannot run here; on Windows CI it does. Upstream runtime verification: Wine (menu + CLI paths, forced-menu edge cases) and native AMD RDNA3/Windows 11 (cargo test -p victory10 passed/0 failed).GetConsoleProcessList) is only hand-tested upstream.This PR was created by an AI agent (OpenHands) on behalf of the user.