Files
mandy/third_party/xtaskqueue/README.md
IAmNotSiob 36bc1200ad Runtime: offline xgameruntime shim (XGameRuntime, XSystem, XTaskQueue, XAsync)
Every GDK title calls XGameRuntimeInitialize first and builds its async work on
XTaskQueue/XAsync. Add an xgameruntime.dll shim table for those, ahead of the
executable: XGameRuntimeInitialize/Uninitialize (reference counted),
XSystemGetDeviceType (Series X; LEONIDA_DEVICE_TYPE overrides) and
XSystemGetConsoleId (placeholder), plus the 23 XTaskQueue/XAsync functions.

XTaskQueue/XAsync come from microsoft/libHttpClient (MIT), copied unmodified
into third_party/xtaskqueue (task queue only, no HTTP stack); a small pch.h
stand-in lets them build alone. xgameruntime_test drives the table through
the shim registry the way a title boots. Nothing goes online.
2026-11-21 23:06:10 +01:00

15 lines
888 B
Markdown

# XTaskQueue / XAsync (from microsoft/libHttpClient)
The GDK's task queue and async-block implementation, taken unmodified from
[microsoft/libHttpClient](https://github.com/microsoft/libHttpClient) at commit
`c5007fd9cbdc785518ea6dccc5751b125d451cc1`. **MIT licence** (see `LICENSE`), which is compatible with Leonida's
GPL-3.0-or-later.
Only what the task queue needs is copied: `Include/XAsync.h`, `Include/XAsyncProvider.h`, `Include/XTaskQueue.h`,
the Win32 sources and headers of `Source/Task/`, and `Source/Common/ResultMacros.h`. The HTTP and WebSocket stack is
not included and nothing here goes online.
libHttpClient's own `pch.h` pulls in that whole stack, so `runtime/shims/xtaskqueue/pch.h` stands in for it with
the few macros and error codes `Source/Task` uses. To update: copy the same files from a newer commit, change the
commit above and rebuild `xgameruntime_test`.