Repository navigation
Find and play a VIctory build whose program has another name (#69, #88) - #92
ySKELLETONX wants to merge 1 commit into
Conversation
A fork can rename the `victory` package's program (SlaktarnVI builds `valhalla`). The launcher recorded some other program, then looked for victory.exe anyway, so Play and Fix and verify said it was not installed or that its program was missing. Build that program by name, record it as a VIctory build, and use the recorded program wherever one is looked up. Programs that are not VIctory builds get no game-file search or D3D12 files for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 306046b57e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let dir = target.join(profile); | ||
| let executable = if renamed { | ||
| dir.join(crate::platform::exe_name(program)) |
There was a problem hiding this comment.
Resolve renamed executables from Cargo's artifact output
On a fresh install of a renamed workspace with build.target set, even to the host triple, this lookup rejects a successful build. Cargo's documentation notes that target-mode artifacts are “placed in a separate directory” (cargo build). In a dependency-free Linux fixture with build.target = "x86_64-unknown-linux-gnu", the command produces <target>/x86_64-unknown-linux-gnu/release/valhalla, but this branch checks <target>/release/valhalla, reports the build made no ..., and never records the install. These workspaces previously used the artifact-driven branch, which captured the correct path. Use Cargo's emitted executable path for both the existence check and the saved install record.
Useful? React with 👍 / 👎.
What this changes
rust_project::victory_programnames thevictorypackage's program:victory, or the package's only program when a fork renamed it and kept the layer's crates (victory-hle/victory-loader).-p victory --bin <name>and recorded withvictory: true, so it is treated as a VIctory build (game files, graphics settings,run) and not as a standalone program. Existing records without the field read asfalse.project_exeandfix_builduse the recorded program (installed_exe) instead of always expectingvictory.exe.project_exenow also finds plain Rust programs, those no longer get a game-file search or D3D12 files unless they name the Agility SDK.Why
SlaktarnVI's
victorypackage buildsvalhalla.exe. Cargo finished, but the launcher looked forvictory.exe, so Play said "this project is not installed yet" and Fix and verify said antivirus may have removed it. That matches the logs in #69 and #88, but the reporters have not confirmed it. The program it recorded for such a workspace was also the wrong one:xtask, because it is named after its package.Refs #69, #88
How it was tested
pnpm ci:checkpasses (on Windows)cargo fmt --checkandcargo clippy --all-targetsreport nothing (for Rust changes)New tests: one for
victory_program, and the parallel-install fixture now also checks that a plain Rust program is found after install (without the fix it fails with #69's message) and builds a workspace with a renamed program next to anxtask. SlaktarnVI's owncargo metadatamatches that shape. I did not build or run SlaktarnVI itself, or the packaged launcher, and did not test on macOS or Linux.Not covered: "Use the keyboard as a controller" still looks for
victory.exe. A project already installed this way hasxtaskrecorded, so it needs Update or Reinstall once; until then Play starts that helper, and Fix and verify does not rebuild.Safety and data
Licence
🤖 Generated with Claude Code