Commit Graph

10 Commits

Author SHA1 Message Date
15d9ec9715 d3d12_xs_surface: guard GUID negative bounds, SCARAB BOM/CRLF, and bad paths 2026-11-26 19:39:01 +08:00
7853f64af5 d3d12_xs_surface: SDK discovery skips a newer driver-kit include folder without the D3D headers 2026-11-24 09:26:11 +05:30
1a9c8c9e89 d3d12_xs_surface: say the unresolved IIDs are absent from local tables (#3520)
Squash-merged after diff review of PR #3520
2026-11-23 09:59:42 -06:00
e6c62de6af docs/tool: scope the unresolved IID evidence to local tables
Do not call a title trace the only source. The checker verifies that the local export table and CONSOLE_IIDS do not assign the four values; SCARAB's vendor-runtime observation stays attributed, and a QueryInterface trace is one possible future source.
2026-11-22 21:01:11 +00:00
9be4e17afa docs: correct console command-list IID status (D3D-369)
The 1.0.2.1 package has 16 DLLs and no D3D12 runtime DLL; gameos.xvd is encrypted with no plaintext D3D12 strings, and the executable that would call QueryInterface is absent. SCARAB's provenance note also says the runtime does not export ID3D12ConsComputeCommandList/6/8 or ID3D12ConsCopyCommandList6, so no export table can supply them. Correct the surface/export-contract rows and lock the negative in the checker and test. All four stay unknown until the title's QueryInterface is logged.
2026-11-22 20:44:56 +00:00
d3c587f3fd d3d12_xs_surface: compare SDK include versions numerically 2026-11-22 17:57:33 +01:00
f698bf2206 tools: a path outside the console's code page no longer crashes a tool's output
On Windows a redirected stdout uses the console's ANSI code page, and python -I ignores PYTHONUTF8 and
PYTHONIOENCODING, so a caller path with a character outside that code page ended a run with
UnicodeEncodeError as soon as a tool printed it. #1406 fixed make_game.py; every CLI tool in tools/ now starts
its __main__ block the same way (stdout errors="replace").

tests/test_tool_stdout_encoding.py checks every tool's __main__ block and reruns two measured crashes
(analyze_4240_full.py, meshlet_page.py) with a private-use-named input. Found by @abilliontokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:27:00 +00:00
84b1f3fd07 fix(tools): close file handles with context managers in tools
Closes unmanaged open() calls in tools/tex_export.py, tools/tex_mode_probe.py,
tools/shader_disasm.py, tools/hashdict.py, and tools/d3d12_xs_surface.py to avoid
leaking file descriptors and ResourceWarning under Python 3.12+. Expands
tests/test_resource_hygiene.py to cover these tools.
2026-11-22 15:27:46 +05:30
02c74f1e35 d3d12_xs_surface.py: accept an SDK um path with a trailing separator
find_sdk_include() tells a WINDOWS_SDK_INCLUDE that names the um folder
from one that names the version folder by the path's basename. For
"...\um\" the basename is empty, so it looked for "...\um\um", and
--sdk skipped the check (--require-sdk failed) although the headers were
there. The path is normalized first. A synthetic test tries all four
spellings against a temporary folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:03:17 -03:00
b406270b53 Docs: measured d3d12_xs surface from SCARAB
Records the 116-export contract (23 functions + 93 GUIDs), the 28 D3D12 IIDs and the 10 console-only IIDs from SCARAB, with per-item provenance and file:line references. The IID block ordinals 72-99 are derived from the alphabetical export order anchored by IID_ID3D12Debug @76. Includes a checker/test that re-verifies the 116-slot arithmetic and the 83 standard GUIDs against the Windows SDK.
2026-11-21 18:23:05 +00:00