fix(play): fetch the D3D12 runtime on Windows 10 when no device is made #210
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!210
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Cuon7 on GitHub · 2026-11-27 19:48 UTC · original
Cuon7:fix/d3d12-fetch-when-no-device→main· +38 −7 · 3 files · 1 commits · merged 2026-11-29 08:16 UTCChanges
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.