Repository navigation
Console Runtime
The game and its libraries are normal x64 PE images. The loader maps them on Windows itself, resolves their imports and runs their initialisation. Imports resolve in this order: a shim in the loader, an image the loader mapped, then the Windows system DLL.
| Library | Replacement |
|---|---|
xmem.dll |
memory allocation on VirtualAlloc
|
d3d12_xs.dll |
root-signature helpers forwarded to d3d12.dll; the rest of D3D12.X is not started |
xgameruntime.dll |
offline GDK runtime (below) |
The game runs as if the console had no network: one local player, saves in folders, everything installed.
| Area | What the game sees |
|---|---|
| Task queues, XAsync | real queues and async calls with the console's ordering |
| User | one signed-in player, every privilege, the first gamepad as their controller, the PC's default headset |
| Saves, local storage | folders under the save directory, with the console's quota |
| Package, store | one installed package, an active full license, no DLC |
| System UI | dialogs close at once: the cancel button, nobody picked, text entry canceled |
| Network | up but with no connectivity, so the game takes its offline paths |
| Display | HDR on when Windows runs the display in HDR, with its real brightness range; the screen stays awake on request |
| Accessibility | high contrast from Windows; captions as the game sets them; no speech voices |
| Invites, activation | never happen |
| Capture, streaming, speech | reported unavailable |
Every other GDK function answers with a deliberate "not implemented" value and logs its first call. Achievements and stats are Xbox web services, not part of the runtime, so they fail like any offline web request.
The game does not import GDK functions by name. A static library inside each module loads xgameruntime.dll, calls
QueryApiImpl(clsid, iid, &object) and then calls methods on the returned COM-style object by vtable slot. The
loader answers QueryApiImpl with objects whose slots call its shims. The table that maps each (clsid, iid, slot) to
a function is built from the user's own copy of the PC GDK (fivestar platform gdk-abi); it names 365 of the 408
thunks in the shipped libHttpClient.GDK.dll. A call through this path costs about 60 ns.
GetModuleHandle(NULL) and GetModuleFileName(NULL) return the game image rather than the loader, and
LoadLibrary calls from loaded code are routed through the loader when the module is one it maps. Patching the
process environment block is optional because it also affects the .NET runtime hosting the loader.
Five Star Recomp
Research