fix(play): fetch the D3D12 runtime on Windows 10 when no device is made #210

Merged
Cuon7 merged 1 commit from upstream-pr/210 into main 2026-11-29 08:16:59 +00:00
Cuon7 commented 2026-11-27 19:48:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Cuon7 on 2026-11-27T19:48:26Z.


Changes

On Windows 10 22H2, victory.exe exports D3D12SDKVersion = 614 (#10862a6). Without D3D12\D3D12Core.dll beside it, no Direct3D 12 device is made at all, so victory shader-model prints none rather than 6.5. That left two gaps:

  • victory play: check_shader_model() took no answer as fine, so it never offered the runtime on Windows 10, and the game started and failed.
  • play-foxhound.ps1, and with it play-nvidia.ps1 and PLAY_FRAMEGEN.cmd, runs victory run directly and never checked the shader model.

The changes:

  • check_shader_model(): no answer and no D3D12Core.dll also offers the download, with the same prompt and message. If there is still no answer afterwards, the start goes on as it did before, so nothing that started before is blocked.
  • play-foxhound.ps1: only while D3D12\D3D12Core.dll is missing beside victory.exe, it asks victory shader-model. Below 6.6 or none, it runs victory get-d3d12, the same hash- and signature-checked fetch. At 6.6 or above nothing is fetched, so Windows 11 is unchanged apart from that one check. It stops only when the answer was a definite shader model below 6.6 and the fetch failed.
  • README: one line saying the script launchers do this too.

Validation

Windows 10 22H2 (19045), RTX 5070 Ti, release build of 0cef07e plus this change:

  • Without target\release\D3D12, victory shader-model prints none. After victory get-d3d12, it prints runtime ...\D3D12\D3D12Core.dll and 6.8.
  • I ran the new play-foxhound.ps1 block from another working folder. With no D3D12 folder, it reported "none (no device)", fetched 1.614.1 and reached the game start. With the folder present, it skipped the check (9 ms).
  • cargo build --release --locked -p victory succeeds, and cargo clippy reports nothing on the changed lines.

Not covered: Windows 11, victory play end to end, and a play session.

AI-assisted change.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5532274826 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/210). Originally posted by [Cuon7](https://github.com/Cuon7) on 2026-11-27T19:48:26Z. --- ## Changes On Windows 10 22H2, `victory.exe` exports `D3D12SDKVersion` = 614 (#10862a6). Without `D3D12\D3D12Core.dll` beside it, no Direct3D 12 device is made at all, so `victory shader-model` prints `none` rather than `6.5`. That left two gaps: - `victory play`: `check_shader_model()` took no answer as fine, so it never offered the runtime on Windows 10, and the game started and failed. - `play-foxhound.ps1`, and with it `play-nvidia.ps1` and `PLAY_FRAMEGEN.cmd`, runs `victory run` directly and never checked the shader model. The changes: - **`check_shader_model()`**: no answer and no `D3D12Core.dll` also offers the download, with the same prompt and message. If there is still no answer afterwards, the start goes on as it did before, so nothing that started before is blocked. - **`play-foxhound.ps1`**: only while `D3D12\D3D12Core.dll` is missing beside `victory.exe`, it asks `victory shader-model`. Below 6.6 or `none`, it runs `victory get-d3d12`, the same hash- and signature-checked fetch. At 6.6 or above nothing is fetched, so Windows 11 is unchanged apart from that one check. It stops only when the answer was a definite shader model below 6.6 and the fetch failed. - **README**: one line saying the script launchers do this too. ## Validation Windows 10 22H2 (19045), RTX 5070 Ti, release build of `0cef07e` plus this change: - Without `target\release\D3D12`, `victory shader-model` prints `none`. After `victory get-d3d12`, it prints `runtime ...\D3D12\D3D12Core.dll` and `6.8`. - I ran the new `play-foxhound.ps1` block from another working folder. With no `D3D12` folder, it reported "none (no device)", fetched 1.614.1 and reached the game start. With the folder present, it skipped the check (9 ms). - `cargo build --release --locked -p victory` succeeds, and `cargo clippy` reports nothing on the changed lines. Not covered: Windows 11, `victory play` end to end, and a play session. AI-assisted change.
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
trustno1-coder/VIctory-NVIDIA!210
No description provided.