Skip to content

docs: the retail executable's dry run leaves 22 imports unimplemented, not 30 (RT-5) - #8280

Closed
PinaTheOne wants to merge 1 commit into
ProjectLeonida:mainfrom
PinaTheOne:rt5-dry-run-22
Closed

PinaTheOne wants to merge 1 commit into
ProjectLeonida:mainfrom
PinaTheOne:rt5-dry-run-22

Conversation

@PinaTheOne

Copy link
Copy Markdown

gta6rt --dry-run on game_scarlett_master.exe (1.0.2.1) at main dde82f27e now lists 22 unimplemented imports, not 30:

game_scarlett_master.exe  base=0x140000000 size=184995840 entry=+0x56a1ec8  shim=61 host=432 module=72 unimplemented=22
5 module(s) mapped, 22 unimplemented import(s)
unimplemented by return policy: hresult=0 other=22

The 22 are the five DLLs with no shim: AcpHal.dll 9, chad.dll 5, xapu.dll 5, xg_xs.dll 2 and XCRDAPI.dll 1. The seven xmem.dll imports (#6919) and d3d12_xs.dll!D3D12ConfigureVirtualMemoryX now bind. The four package DLLs' rows are unchanged. Exit code 0.

This updates:

  • docs/runtime_imports.md: the line that said 23.
  • docs/boot.md: the status line that said 30.
  • docs/audio_hal_exe_calls.md: the opening, which said 30.

It supersedes #7362, which says 29. It leaves out the "the executable's own imports are unknown" bullet, which #8216 and #8235 already cover.

Tested: Linux, clang-cl/lld cross-build of gta6rt.exe run under Wine 11.22, on my own 1.0.2.1 copy, with --overlay pointing at a scratch directory. Only the dry run was done; --run was never started. All tests/test_docs_*.py pass except test_docs_cli_flags (docs/embedded_shaders.md) and test_docs_links (docs/dev-tools.md), which fail the same way on main and are outside this diff.

AI-assisted (Claude Code).

…nted, not 30 (RT-5)

xmem.dll (ItsNotRexed#6919) and D3D12ConfigureVirtualMemoryX are served; re-measured at dde82f2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified via Tier 2 Free Cloud & clean-room review: Accurately updates documentation across docs/boot.md, docs/audio_hal_exe_calls.md, and docs/runtime_imports.md to reflect the reduction from 30 to 22 unimplemented imports following xmem and virtual memory implementation.

@Etr0p

Etr0p commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested on Windows 11 Home (26200), MSVC 19.44 native build of gta6rt.exe (RelWithDebInfo), with game_scarlett_master.exe from my own 1.0.2.1 copy, read in place; only --dry-run and --init (no --run). Counts only.

build unimplemented executable row package DLLs
dde82f27e (this PR's base; the diff is docs only) 22: AcpHal.dll 9, chad.dll 5, xapu.dll 5, xg_xs.dll 2, XCRDAPI.dll 1 (hresult=0, other=22) shim 61, host 432, module 72 unchanged, 0 unimplemented
current main 867d922f0 20: AcpHal.dll 9, chad.dll 5, xapu.dll 5, XCRDAPI.dll 1 (hresult=0, other=20) shim 63, host 432, module 72 unchanged, 0 unimplemented

So your 22 reproduces exactly at dde82f27e on native Windows, but main has moved on: #6891 (RT-489, commit 23060e0877d608a9f3273b89797dc802cfa2face, an ancestor of 867d922f09b86583859796a174df89555fb32da8) added the xg_xs.dll shim. The two imports that left the list, per DLL:

  • xg_xs.dll: XGCreateTextureComputer, XGSuggestSwizzleMode (2 → 0; the executable row's shim count goes 61 → 63)
  • AcpHal.dll, chad.dll, xapu.dll, XCRDAPI.dll: unchanged (9, 5, 5, 1)

The dry run at 867d922f09b86583859796a174df89555fb32da8 lists 20, in four DLLs with no shim. The three docs would need 20 (and the xg_xs.dll entry dropped from the list) to match main; the finding on #8683 that says main leaves 22 was measured at dde82f27e, before #6891 landed. --init exits 0 with nothing on stderr at both commits. AI-assisted (Claude Code).

(Full SHAs: base dde82f27e994337094afc476ded0b1426f6e87e2, main 867d922f09b86583859796a174df89555fb32da8.)

@r0t1vs3c

Copy link
Copy Markdown

Adding to @Etr0p's table: Windows 10 Pro 22H2 (19045), MSVC 14.50 native Release build, own 1.0.2.1 game_scarlett_master.exe (SHA-256 e95020b2…8993) read in place, --dry-run and --init only. Counts only.

  • At 6312c057f (current main, after 867d922f0) it is still 20 in the same four DLLs (AcpHal.dll 9, chad.dll 5, xapu.dll 5, XCRDAPI.dll 1), shim 63 / host 432 / module 72, package DLLs unchanged. So 20 holds on Windows 10 too.
  • One change since 867d922f0: with b7a3fed28 (index-0 TLS for the /GA executable) both --dry-run and --init now print one [rt] loader line on stderr. At 867d922f0 I also saw none, as you did; at 6312c057f there is one. The "nothing on stderr" wording in runtime_imports.md would need that too.
  • --init at 6312c057f: exit 0; tools/boot_trace.py: 15 events, dllmain: 4 ok, 0 failed, unimplemented: none.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants