play.ps1: set VICTORY_RELAY=1 and VICTORY_CARD_STEPS=0 in -Safe, warn on DRED without diagnostics (#25) #176

Open
ri995410-art wants to merge 1 commit from upstream-pr/176 into main
ri995410-art commented 2026-11-26 10:24:37 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by ri995410-art on 2026-11-26T10:24:37Z.


Finishes the remaining items from #25 after #78 and #137:

  1. scripts/play.ps1 (-Safe): -Safe previously inherited VICTORY_RELAY='2' and VICTORY_CARD_STEPS='2' from the shared $settings table, leaving both fast paths enabled when troubleshooting. -Safe now sets VICTORY_RELAY='1' and VICTORY_CARD_STEPS='0'.
  2. VICTORY_D3D12_DRED without diagnostics:
    • In scripts/play.ps1, -Build release now leaves VICTORY_D3D12_DRED unset by default; if explicitly passed via -More, the launcher prints a notice that a release build has no diagnostics feature while still passing the value through.
    • In crates/victory-gpu/src/host.rs, dred_on(), dred_light(), and dred_faults() warn once when VICTORY_D3D12_DRED is set in a build compiled without feature = "diagnostics", and stay off. Added dred_stays_off_without_the_diagnostics_feature unit test.

Verification

  • Parsed scripts/play.ps1 with PowerShell 7.5.4 and verified -Safe, default -Build diag, -Build release, -Build release -More @{VICTORY_D3D12_DRED='light'}, missing exe exit code (1), and inherited env var handling with a stub victory.exe.
  • cargo test -p xtask --locked (9 passed, including documented_switches_are_read) and cargo xtask policy (262 files ok).
  • cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc --lib -- -D warnings passed (default and --features diagnostics), and --tests without diagnostics passed.
  • Not run against a game dump; no game files touched.

Closes #25

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6624562939 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/176). Originally posted by [ri995410-art](https://github.com/ri995410-art) on 2026-11-26T10:24:37Z. --- Finishes the remaining items from #25 after #78 and #137: 1. **`scripts/play.ps1` (`-Safe`)**: `-Safe` previously inherited `VICTORY_RELAY='2'` and `VICTORY_CARD_STEPS='2'` from the shared `$settings` table, leaving both fast paths enabled when troubleshooting. `-Safe` now sets `VICTORY_RELAY='1'` and `VICTORY_CARD_STEPS='0'`. 2. **`VICTORY_D3D12_DRED` without `diagnostics`**: - In `scripts/play.ps1`, `-Build release` now leaves `VICTORY_D3D12_DRED` unset by default; if explicitly passed via `-More`, the launcher prints a notice that a release build has no `diagnostics` feature while still passing the value through. - In `crates/victory-gpu/src/host.rs`, `dred_on()`, `dred_light()`, and `dred_faults()` warn once when `VICTORY_D3D12_DRED` is set in a build compiled without `feature = "diagnostics"`, and stay off. Added `dred_stays_off_without_the_diagnostics_feature` unit test. ## Verification - Parsed `scripts/play.ps1` with PowerShell 7.5.4 and verified `-Safe`, default `-Build diag`, `-Build release`, `-Build release -More @{VICTORY_D3D12_DRED='light'}`, missing exe exit code (`1`), and inherited env var handling with a stub `victory.exe`. - `cargo test -p xtask --locked` (9 passed, including `documented_switches_are_read`) and `cargo xtask policy` (`262 files ok`). - `cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc --lib -- -D warnings` passed (default and `--features diagnostics`), and `--tests` without `diagnostics` passed. - Not run against a game dump; no game files touched. Closes #25
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/176:upstream-pr/176'
git switch 'upstream-pr/176'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/176'
git switch 'upstream-pr/176'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/176'
git switch 'upstream-pr/176'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/176'
git switch 'main'
git merge --squash 'upstream-pr/176'
git switch 'main'
git merge --ff-only 'upstream-pr/176'
git switch 'main'
git merge 'upstream-pr/176'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
avatarmanz/VIctory-7900XTX!176
No description provided.