Repository navigation
Conversation
libHttpClient.GDK.dll and XCurl.dll reach the GDK runtime through
xgameruntime.lib's thunks: LoadLibraryW("xgameruntime.dll"), then
GetProcAddress of InitializeApiImpl, InitializeApiImplEx,
InitializeApiImplEx2, QueryApiImpl, UninitializeApiImpl and XErrorReport.
The shims served only the first five. Without XErrorReport the thunks
refuse the runtime before they call any initializer: under gta6rt --run,
HCInitialize returned 0x89240101 (E_GAMERUNTIME_DLL_NOT_FOUND) and
curl_global_init returned CURLE_FAILED_INIT.
XErrorReport is now served by the function behind IXErrorImpl slot 3, so
a report reaches the XErrorSetCallback callback either way.
xgameruntime_test and the tiny_gdk_load fixture check all six names and
that a report through the export reaches the callback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
Not covered: the GDK probe against the package's |
|
Verified the export change from I also compared two local startup runs on the same integration branch and Wine prefix, with the same experimental CPU-side XMem backing in both runs. Before this change the lookup of |
|
Tested The exe's runtime init looks up Windows 11 26200, AMD RX 9070 XT, MSVC 14.44, Windows SDK 10.0.26100, own Xbox 1.0.2.1 package (with AI-assisted (Claude Code). |
|
Tested on the retail engine Needed and confirmed. WinMain's xgameruntime.lib stub requires XErrorReport to resolve and otherwise returns 0x89240101 and hits an int3 (exe+0x5a91c21). With this PR: |
devnull34
left a comment
There was a problem hiding this comment.
Hardware & Environment
- Host: Windows 11 Build 26300 x64
- CPU/GPU: AMD Ryzen / AMD Radeon RX 7900 GRE (16 GB VRAM)
- Toolchain: MSVC 19.44 (Visual Studio 2022), CMake 4.4, Windows SDK 10.0.26100.0
Verification Summary
Targets compiled with MSVC 19.44 and verified natively:
-
**\xgameruntime_test.exe**:
- Passed with all 144 checks OK.
- Verified resolution of all six GDK thunk names (\InitializeApiImpl, \InitializeApiImplEx, \InitializeApiImplEx2, \QueryApiImpl, \UninitializeApiImpl, and \XErrorReport).
- Verified \XErrorReport\ export returns \S_OK\ and routes through to \XErrorSetCallback.
-
\ iny_gdk_load\ Fixture & \gta6rt\ Runner:
- Rebuilt \gta6rt.exe\ and ran
un_tiny_gdk_load\ test under runtime loader. - Dynamic command line matching and run-time module resolution with \XErrorReport\ verified.
- Rebuilt \gta6rt.exe\ and ran
-
CTest Suite:
- All 9 xgameruntime tests passed (100%):
- \xgameruntime: Passed (0.04s)
- \xgameruntime_user: Passed (0.01s)
- \xgameruntime_gamesave: Passed (0.03s)
- \xgameruntime_store: Passed (0.01s)
- \xgameruntime_offline: Passed (0.01s)
- \xgameruntime_offline_hdr: Passed (0.01s)
- \xgameruntime_user_gamertag: Passed (0.01s)
- \xgameruntime_user_gamertag_long: Passed (0.01s)
un_tiny_gdk_load: Passed (0.08s)
- All 9 xgameruntime tests passed (100%):
-
Hygiene & Compliance:
- Clean-room compliant: zero game data or proprietary files used or referenced.
- \git diff HEAD~1..HEAD --check: Clean (0 whitespace/formatting defects).
LGTM!
…(rebase of ItsNotRexed#5312) Author: Kam471 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkEUa9YfGQH4p9g1Guw9gq
|
Independent Windows + NVIDIA check of
I didn't run the GDK probe against the package DLLs, because that needs game files. |
|
Independent retail startup comparison on CachyOS x86-64, Wine 11.22, clang-cl 23.1.5/xwin 0.10.0 SDK 10.0.26100, Release, RTX 5070 Ti / NVIDIA 620.73.04. Tested offline on my local 1.0.2.1 package with Vulkan enabled.
On the combined TLS + memory build, the synthetic xmem (156 checks), loader TLS, tiny-game TLS and TLS clone cleanup tests passed. The /GA fixture's positive slot-zero checks pass, with the already-reported Wine failure in its missing-temp negative case. Outcomes only; all traces stayed local. AI-assisted (Codex). Follow-up: the runtime parts of #4348 at |
…l/XLauncherImpl)
IAmNotSiob
left a comment
There was a problem hiding this comment.
approve :) merged onto current main (one doc paragraph conflicted: kept main's XAccessibilityImpl/XLauncherImpl, your XErrorReport text) at IAmNotSiob:xerr-check. win10 VM, RTX 6000, MSVC: xgameruntime and run_tiny_gdk_load pass (the export reaches the XErrorSetCallback callback). the 7 failing tests on that box are d3d12/gameinput ones, the same set it fails without this pr. retail boot chain stop 3. AI-assisted (Claude Code).
|
Independent retail-startup comparison on Arch Linux / Wine 11.18, clang-cl 23.1.6 + xwin SDK 10.0.26100, RelWithDebInfo, Vulkan and SDL3 enabled. RX 7900 XT / RADV Mesa 26.2.3; GPU work was not reached. Base: main With #6582 head The executable and matching PDB were built by a cooperating local tester from a frozen source snapshot; I independently verified all 747 tracked runtime/xtaskqueue files against the integration revision, copied the runtime artifacts with hashes, and ran both comparisons in the same private Wine prefix with networking disabled and the original package read-only. The only merge conflict for this checkpoint was the documented class-list paragraph; no code conflict or local runtime patch. Adding #4348 alone to that checkpoint still reaches the same Wine GameInput stub. The existing ordinal-alias fix #7216 is being tested separately, so no DirectStorage or device progress is claimed from these runs. No game data or raw traces attached. AI-assisted. |
|
@Kam471, the conflict with Branch: Checked on Windows 11, i7-14700K, MSVC 14.44
AI-assisted (Claude Code). No game files. |
Rebase of #5312 for current
main(the original head is conflicting). Original author: @dracbat; authorship is preserved. BranchKam471:assist-5312-rebased, one commit on1cc6e3c12.xgameruntime.lib's thunksGetProcAddressXErrorReportfromxgameruntime.dll. Without it, the GDK clients refuse the runtime:HCInitialize(NULL)->0x89240101,curl_global_init(3)->2,curl_easy_init()-> NULL.Tested on the rebase base:
ctest -R '^xgameruntime': 8/8run_tiny_gdk_load: 1/1XErrorReportnon-NULL andS_OK;HCInitialize(NULL)= 0;curl_global_init(3)= 0;curl_easy_init()non-NULLgit diff --checkclean;git merge-treevs main exits 0.The only conflicts were main's newer class lists in
docs/runtime_imports.mdand the class-list comment; both are kept, with the XErrorReport text added.