Repository navigation
xgameruntime: serve XGameStreamingImpl and XLauncherImpl offline - #4248
evilclanker9000 wants to merge 3 commits into
Conversation
QueryApiImpl serves both classes as a console nobody streams from and with no shell: not streaming, no clients (client calls fail with ERROR_NOT_FOUND), touch-control updates do nothing, XLaunchUri and SetResolution are not supported, and the screen-timeout deferral hands out a handle. xgameruntime_streaming_test calls every slot. AI-assisted.
|
Independent check of
Heads-up: #4235, #4239 and #4248 each add a hook at the same spot in AI-assisted (Devin). |
|
Independent code read + build/hygiene check at
AI-assisted review. |
|
Tested 1a2ae8c on Windows 11 x64 (MSVC 19.44, Ninja): pass. Built |
Flyander
left a comment
There was a problem hiding this comment.
The offline touch-control behavior should accept the documented optional default layout. Please adjust the null-layout case and its test.
| return kNoClient; | ||
| } | ||
| HRESULT STDMETHODCALLTYPE gs_show_touch_with_state(void*, const char* layout, size_t count, const void* ops) { // 27 | ||
| return (!layout || (count && !ops)) ? E_INVALIDARG : S_OK; |
There was a problem hiding this comment.
[P2] Accept a null layout as the documented default. XGameStreamingShowTouchControlsWithStateUpdate marks layout optional; passing null requests the standard layout, rather than being an invalid argument (Microsoft GDK reference). This offline shim drops the update anyway, so return success for the null/default case as it does for other global touch-layout no-ops, and update the test that currently expects E_INVALIDARG.
Conflicts: docs/runtime_imports.md, runtime/CMakeLists.txt, runtime/shims/xgameruntime.cpp, scripts/build_runtime.ps1 XGameStreamingImpl is now served by xgameruntime_offline.cpp on main, so this branch keeps only XLauncherImpl. AI-assisted.
Conflicts: docs/runtime_imports.md AI-assisted.
|
Windows check of Environment: Windows 11, MSVC 19.44 (RelWithDebInfo, Ninja), CPU only. Synthetic API test, no game files, no GPU.
Re-check on the merged head; the earlier check was on an older revision. AI-assisted (Devin). |
|
Tested
AI-assisted (Claude Code). No game files. |
|
Tested
AI-assisted (Gemini 4 Neon). |
|
Tested
Not run: other GPUs/vendors, Linux, the Vulkan validation layer (not installed). No game files. AI-assisted (Claude Code). |
Item: RT-283
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-RT-STREAMING, #4084 (comment)
What and why
QueryApiImplrefusedXGameStreamingImpl(class0a2192aa-b2d5-4d58-83be-383b6d80799e,IXGameStreamingImpl..3) andXLauncherImpl(1b339674-328d-4283-a200-3171f18d3639); #3476 lists both as not served. They are now served inruntime/shims/xgameruntime_streaming.cpp, hooked in with one line inQueryApiImpl. Slot order follows xgameruntime-docs, signatures the public GDK reference. No package DLL calls them in a way this PR measured, so the table says the slots are not measured.The port is not streamed to anyone and has no console shell:
XGameStreamingIsStreamingfalse, client count 0,GetClientsreturns none, every connection state Disconnected, connection-state registrations return a token that never fires (Unregistertrue once);HRESULT_FROM_WIN32(ERROR_NOT_FOUND), clearing outputs whose type is known; touch-control updates succeed and do nothing;SetResolutionandXLaunchUrifail withERROR_NOT_SUPPORTED(the URI is not logged);XDisplayAcquireTimeoutDeferralhands out a handle,XDisplayCloseTimeoutDeferralHandletakes it back;IXGameStreamingImpl3that xgameruntime-docs does not list (35-38) answer 0 and log once.XGameStreamingClientId's size is not in the pages read; on x64 a structure larger than 8 bytes is passed by pointer in the same register, so the argument positions hold either way.Touches
runtime/shims/xgameruntime.cpp(6 lines) and the source lists inruntime/CMakeLists.txtandscripts/build_runtime.ps1. #4235, #4239 and #3657 add a line at the same spot inQueryApiImpl; whichever lands later needs a trivial merge.Tested
Windows 11, MSVC 2022 Build Tools, RelWithDebInfo. No GPU involved.
xgameruntime_streaming_test(new, ctestxgameruntime_streaming): 35 checks, 0 failures.xgameruntime_test: OK (106 checks);gta6rtbuilds.XGameStreamingIsStreamingreturn true failsXGameStreamingIsStreaming is false; reverted.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No translator change.)