run: gate play::load_mods() behind #[cfg(windows)] and execute #2581

Open
github-bot wants to merge 1 commit from github-bot/gh-2581 into main AGit
Owner

@⁠RanoGames on GitHub · 2026-11-29 14:37 UTC · original
RanoGames:fix/run-load-mods → main · +3 −3 · 1 files · 1 commits · open

What it changes

Fixes Command::Run in apps/victory/src/main.rs:

  • mod play; is gated with #[cfg(windows)], and every other play:: call in main.rs is already behind #[cfg(windows)], but play::load_mods(); was left outside both #[cfg(windows)] and if execute after the merge in 4aef7607.
  • Moves play::load_mods(); into the #[cfg(windows)] if execute { ... } block (right after load_mfg() / load_mfg_from_menu()), matching Command::Play and avoiding loading mod DLLs into victory.exe on bind-only victory run invocations without --execute, while fixing non-Windows compilation of apps/victory.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): N/A (CLI entry-point / cfg gating fix; no title/GPU run)
  • Before: play::load_mods(); in Command::Run ran unconditionally outside #[cfg(windows)] and even when --execute was false.
  • After: play::load_mods(); only compiles on Windows and only executes when execute is true.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A
  • cargo test passed for the crates it touches: yes (cargo test --locked -p victory: 78 unit tests + 1 cache_paths + 2 census passed; cargo clippy --no-deps --locked -p victory --all-targets -- -D warnings passed)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2434 (also touches apps/victory/src/main.rs, unrelated restart-delay logic)
**@⁠RanoGames** on GitHub · 2026-11-29 14:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2581) `RanoGames:fix/run-load-mods` → `main` · +3 −3 · 1 files · 1 commits · open ## What it changes Fixes `Command::Run` in `apps/victory/src/main.rs`: - `mod play;` is gated with `#[cfg(windows)]`, and every other `play::` call in `main.rs` is already behind `#[cfg(windows)]`, but `play::load_mods();` was left outside both `#[cfg(windows)]` and `if execute` after the merge in `4aef7607`. - Moves `play::load_mods();` into the `#[cfg(windows)] if execute { ... }` block (right after `load_mfg()` / `load_mfg_from_menu()`), matching `Command::Play` and avoiding loading mod DLLs into `victory.exe` on bind-only `victory run` invocations without `--execute`, while fixing non-Windows compilation of `apps/victory`. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): N/A (CLI entry-point / cfg gating fix; no title/GPU run) - Before: `play::load_mods();` in `Command::Run` ran unconditionally outside `#[cfg(windows)]` and even when `--execute` was false. - After: `play::load_mods();` only compiles on Windows and only executes when `execute` is true. - For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A - `cargo test` passed for the crates it touches: yes (`cargo test --locked -p victory`: 78 unit tests + 1 `cache_paths` + 2 `census` passed; `cargo clippy --no-deps --locked -p victory --all-targets -- -D warnings` passed) ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2434 (also touches `apps/victory/src/main.rs`, unrelated restart-delay logic)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 14:39:25 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2581/head:github-bot/gh-2581'
git switch 'github-bot/gh-2581'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2581'
git switch 'github-bot/gh-2581'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2581'
git switch 'github-bot/gh-2581'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2581'
git switch 'main'
git merge --squash 'github-bot/gh-2581'
git switch 'main'
git merge --ff-only 'github-bot/gh-2581'
git switch 'main'
git merge 'github-bot/gh-2581'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2581
No description provided.