fix(play): fetch the D3D12 runtime on Windows 10 when no device is made #210
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/210"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Cuon7 on 2026-11-27T19:48:26Z.
Changes
On Windows 10 22H2,
victory.exeexportsD3D12SDKVersion= 614 (#10862a6). WithoutD3D12\D3D12Core.dllbeside it, no Direct3D 12 device is made at all, sovictory shader-modelprintsnonerather than6.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 itplay-nvidia.ps1andPLAY_FRAMEGEN.cmd, runsvictory rundirectly and never checked the shader model.The changes:
check_shader_model(): no answer and noD3D12Core.dllalso 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 whileD3D12\D3D12Core.dllis missing besidevictory.exe, it asksvictory shader-model. Below 6.6 ornone, it runsvictory 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.Validation
Windows 10 22H2 (19045), RTX 5070 Ti, release build of
0cef07eplus this change:target\release\D3D12,victory shader-modelprintsnone. Aftervictory get-d3d12, it printsruntime ...\D3D12\D3D12Core.dlland6.8.play-foxhound.ps1block from another working folder. With noD3D12folder, 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 victorysucceeds, andcargo clippyreports nothing on the changed lines.Not covered: Windows 11,
victory playend to end, and a play session.AI-assisted change.