Skip to content

Find and play a VIctory build whose program has another name (#69, #88) - #92

Open
ySKELLETONX wants to merge 1 commit into
dazacode:mainfrom
ySKELLETONX:fix/renamed-victory-program
Open

ySKELLETONX wants to merge 1 commit into
dazacode:mainfrom
ySKELLETONX:fix/renamed-victory-program

Conversation

@ySKELLETONX

@ySKELLETONX ySKELLETONX commented Nov 29, 2026 •

Copy link
Copy Markdown

What this changes

  • rust_project::victory_program names the victory package's program: victory, or the package's only program when a fork renamed it and kept the layer's crates (victory-hle / victory-loader).
  • A renamed program is built with -p victory --bin <name> and recorded with victory: 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 as false.
  • project_exe and fix_build use the recorded program (installed_exe) instead of always expecting victory.exe.
  • Since project_exe now 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 victory package builds valhalla.exe. Cargo finished, but the launcher looked for victory.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:check passes (on Windows)
  • cargo fmt --check and cargo clippy --all-targets report nothing (for Rust changes)
  • Tested in the app, or the browser mock, for UI changes: no UI 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 an xtask. SlaktarnVI's own cargo metadata matches 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 has xtask recorded, so it needs Update or Reinstall once; until then Play starts that helper, and Fix and verify does not rebuild.

Safety and data

  • No personal data, paths, tokens or game files are added
  • Anything that runs code, or changes files outside a project's folder, has a warning and is opt-in (nothing of this kind is added)
  • Saves are not read, moved or deleted by this change

Licence

  • I agree my contribution is released under GPL-3.0-or-later

🤖 Generated with Claude Code

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T18:31:14.143364Z 306046b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src-tauri/src/launcher.rs
Comment on lines +2575 to +2577
let dir = target.join(profile);
let executable = if renamed {
dir.join(crate::platform::exe_name(program))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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.

1 participant