Repository navigation
Conversation
…iImpl XPersistentLocalStorageImpl (IXPersistentLocalStorageImpl3, slots 3-8), XGameRuntimeFeatureImpl (3), XGameEventImpl (3), XSystemAnalyticsImpl (3) and XDisplayImpl (IXDisplayImpl, 3-4). Interface ids, slots and argument counts are tools/gdk_runtime_calls.py's measurement of libHttpClient.GDK.dll; each slot is the function at that position of xgameruntime-docs' layout, and behaves as Microsoft's GDK reference page for it says. - Persistent local storage is <overlay>\.gta6rt-pls\, made on first use and hidden from GAME:\ listings; sizes count the terminator; a short buffer is E_FAIL (ERROR_INSUFFICIENT_BUFFER with device type Pc); space info reports the volume's free bytes and the folder's files; the space prompt completes with E_ABORT through XAsync; mounting another title's storage is FILE_NOT_FOUND with the handle cleared. - XGameRuntimeIsFeatureAvailable (bool) is true when the feature's class is served and the feature is documented for Windows: XDisplay, XStore and every unserved class are false. - XGameEventWrite accepts and logs (bounded); null required arguments are E_INVALIDARG. - XSystemGetAnalyticsInfo returns the named export's struct through the member-function return pointer. - XDisplayTryEnableHdrMode answers Disabled (SDR presentation) with the info zeroed; undocumented slot 3 is E_NOTIMPL. xgameruntime_test calls every slot as the thunks do (class id + measured interface id), with error paths and refused ids; file_system_test checks the storage folder stays out of GAME:\ listings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d#3471) Another contributor claimed XPersistentLocalStorageImpl first (RT-219, ItsNotRexed#3471), so this branch no longer serves it: its vtable, object and QueryApiImpl entry, its xgameruntime_test checks and its docs/runtime_imports.md row go, and file_system.cpp/.h, file_system_test.cpp and CMakeLists.txt are back to main's content (the .gta6rt-pls listing filter and the extra file_system.cpp in xgameruntime_test only served the storage class). XGameRuntimeFeatureImpl keeps the class id in its table, so XGameRuntimeIsFeatureAvailable(XPersistentLocalStorage) follows QueryApiImpl: false now, true once the class is served. The test checks it with the other features that follow their class. XGameRuntimeFeatureImpl, XGameEventImpl, XSystemAnalyticsImpl and XDisplayImpl are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Scope update in f7b10b9: I dropped |
|
Layout cross-check of f7b10b9 against the LGPL xgameruntime IDL (xodus-gaming/xgameruntime,
AI-assisted review (Claude Code). |
|
Correction to my comment above: your layout is the more trustworthy one, not the IDL's. I compared the two sources class by class. Where xgameruntime-docs marks a slot AI-assisted review (Claude Code). |
|
Needs a rebase: two hunks in runtime/shims/xgameruntime.cpp conflict with main — the class-list comment and QueryApiImpl, where main's object loop (which since 4c52ce2 includes g_persistent_storage) collided with your find_object() refactor. The resolution is small: keep find_object() and add g_persistent_storage to its list — resolving to the PR side alone would silently drop main's new XPersistentLocalStorageImpl service. Good news: your slot-3 feature test compares availability against QueryApiImpl dynamically, so it stays correct once PLS is in the list. One merge-order note: the docs and test comments credit tools/gdk_runtime_calls.py as the measurement source, but that tool currently exists only in #3455 — if that does not land first, the citation points at a file that is not in the tree. The four classes themselves read well: measured ids, per-slot behaviour documented, refusals for the unmeasured ones. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Claimed in the coordination issue as: #3381 (comment)
What and why
A title linked with
xgameruntime.libreaches the GDK only throughQueryApiImpland one vtable slot per function (docs/runtime_imports.md, "Run-time loaded modules").runtime/shims/xgameruntime.cppserves threading, errors, networking, system and package; any other class is refused with0x80070032, so the title takes its failure path. This adds five more classes a title is likely to touch at boot, none of them claimed elsewhere (XUser, XGameSave, XGame and XStore are left alone; XStore on purpose: no licence answers).Each slot's position and argument shape was checked against
libHttpClient.GDK.dll's statically linked thunks (class id inrcx, interface id inrdx, slot from the vtable call; measured withtools/gdk_runtime_calls.py, #3455, read-only on the retail package, nothing from it in the commit). The order follows xodus-gaming/xgameruntime-docs (GPL-3.0, facts only), and the semantics and return types follow Microsoft's public GDK reference pages, cited per method in the code. The measured argument counts match the documented signatures for every slot.XPersistentLocalStorageImpl(IXPersistentLocalStorageImpl3)<overlay>\.gta6rt-pls\, created on first use and hidden fromGAME:\listings like the overlay's marker folder (small change infile_system.cpp/.h), never inside the package. A short buffer returnsE_FAIL, as documented. Space info reports the volume's free bytes and the folder's used bytes. The space prompt completes withE_ABORT. Mounting another package's storage returnsFILE_NOT_FOUNDand clears the handleXGameRuntimeFeatureImplbool: true only for features whose class this runtime serves and that Microsoft documents as available on Windows;XDisplayandXStoreanswer falseXGameEventImplE_INVALIDARGXSystemAnalyticsImplXSystemGetAnalyticsInfoexport returns (the thunk's one argument is the hidden return-struct pointer, checked in its code)XDisplayImpl(IXDisplayImpl)Disabled(the runtime presents SDR) with the info struct zeroed; slot 3 is undocumented and returnsE_NOTIMPLEach object answers
QueryInterfacefor its class id and every interface id of its chain, through theinterface_idslistRuntimeObjectalready has.docs/runtime_imports.mdgets a row per class.Not included, because they would be guesswork today:
XGameStreamingImpl(four of its slots are called through an interface id the docs don't list),XAccessibilityImpl,XLauncherImpl,XUserDeviceImpl(it depends onXUserImpl).Tested
Windows 11 Pro (26300), VS 2022 Build Tools 17.14, Vulkan SDK 1.4.363; AMD Radeon iGPU (RDNA2, driver 25.10.36) as the default Vulkan device.
xgameruntime_test: 130 checks. Every new slot is called throughQueryApiImplexactly as a thunk does (class id plus the measured interface id), with outputs, error paths and the refusal of unknown ids.ctest: 132 of 132 passed (the tests that need game files skip;gameinputis disabled without SDL3 in that build).AI-assisted: written and tested with Claude Code.
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change.)🤖 Generated with Claude Code