The unit tests of settings_line could only fail on main by not building.
This one runs the built binary on a title that does not exist, with two
LEONIDA_ settings, one a folder, and reads its log: on main there is no
settings line and it fails by assertion; with the change the line names
both settings and shows the folder only by its length.
Windows 10's own Direct3D 12 stops at shader model 6.5 and refuses the
heap-directly-indexed root signatures every translated pipeline uses, so on
Windows 10 leonida.exe made no host pipeline at all.
leonida.exe now exports D3D12SDKVersion and D3D12SDKPath (.\D3D12\), so
Windows loads Microsoft's newer runtime from a D3D12 folder beside it.
D3D12SDKVersion is set first thing in main to the version of the
D3D12Core.dll that is there (a mismatch makes Windows refuse Direct3D 12,
0x887E0003), or to Windows' own runtime's without one, so nothing changes on
Windows 11. d3d12.dll is delay-loaded so that Windows reads the version main
set. Get-D3D12.cmd (scripts\get-d3d12.ps1) fetches Agility SDK 1.614.1 from
nuget.org with pinned SHA-256s and a Microsoft signature check, and
play-nvidia.ps1 stops with that hint on Windows 10 without the folder.
Ported from trustno1-coder/VIctory-NVIDIA (GPL-3.0-or-later), commits
10862a6, e69e39c, f3534e6 and 0f0ada1 there.
Tested on Windows 10 Pro 22H2 (19045), RTX 3090, driver 610.88, Ryzen 7
9800X3D: `leonida warm --used --again --limit 30` made 30 of 30 host
pipelines with D3D12\D3D12Core.dll (1.620) beside the exe, and 30 of 30 had
no host pipeline without it. New tests: agility::tests (version and export
parsing, Windows' own runtime: it exports D3D12SDKVersion 2 on Windows 10
22H2) and tests/agility.rs (the exe exports both symbols; d3d12.dll is
delay-loaded, not imported).
Written with AI assistance (Claude).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What changed:
- victory/ is now d3d12/;
- its crates are leonida-* (leonida_* code paths);
- the program is leonida.exe;
- settings are LEONIDA_*, and the older VICTORY_* names still work through apps/leonida/src/leonida.rs;
- the config file is leonida.toml;
- log names and user-facing text say Leonida.
What did not change: lines that credit upstream projects or people, URLs, copyright notices and the
GPL-3.0 LICENSE. d3d12/README.md opens with a Leonida section that says the runtime grew from
Marvisak/VIctory through trustno1-coder/VIctory-NVIDIA. The rest of that README is labelled as
trustno1-coder's.
The launchers (scripts/play-d3d12.ps1, scripts/play-linux.sh), docs/linux.md and
scripts/sync_victory.py (prefix d3d12) follow the move. Future upstream merges will need a
mapping from upstream's names onto these.
Builds with `cargo build --profile diag -p leonida --features diagnostics`. The settings alias
tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>