diff --git a/docs/README.md b/docs/README.md index 54ad2e17a6..2c73a3639f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -87,7 +87,7 @@ method, scope and caveats. No game data is included. | [d3d12_command_objects.md](d3d12_command_objects.md) | Measured command queue/list/fence/`PresentX` surface; verified vs prior art vs open. | | [xbox_d3d12_xs.md](xbox_d3d12_xs.md) | The `d3d12_xs` graphics ABI quoted from Microsoft's public GDK reference: root signatures, state objects, DXIL libraries, hit groups, shader cache sessions; which pages are missing or NDA-gated. | | [runtime_imports.md](runtime_imports.md) | The 16 shipped modules' measured imports and shim/host/unimplemented split. | -| [gdk_public_reference.md](gdk_public_reference.md) | How to use the public PC GDK reference and headers to write shims for the imported console APIs: what it covers (XGameRuntime, XTaskQueue, XUser, XStore, XGameSave, GameInput), what it does not (`d3d12_xs`, NDA), the 4-step method and the lines not to cross. A convention, not a measurement. | +| [gdk_public_reference.md](gdk_public_reference.md) | How to use the public PC GDK reference and headers to write shims for the imported console APIs: what it covers (XGameRuntime, XTaskQueue, XUser, XStore, XGameSave, GameInput), what it does not (`d3d12_xs`, NDA), the 4-step method, a measured table of which imported names have a public page (2026-11-29) and the lines not to cross. | | [linux_proton.md](linux_proton.md) | Building and booting under Proton/Wine on Linux, one bounded game run with `scripts/run_game_wine.sh`, a healthy boot's timeline, and the test report of one Linux and two Windows machines | | [xmem_exe_calls.md](xmem_exe_calls.md) | How the retail executable calls `xmem.dll`: call sites and constant arguments per import (`tools/import_call_sites.py`), the 23 `XMemVirtualAlloc` calls that all pass an attribute word, and the inferred shape of the physical-page family. | | [exe_fail_fast.md](exe_fail_fast.md) | Where the retail executable stops itself (`int3`) on an import's result: 78 sites over 27 imports (`tools/import_fail_fast.py`), grouped by how `main` binds each import (all 13 non-host fatal-checked imports now bind to shims; 0 unbound). | diff --git a/docs/gdk_public_reference.md b/docs/gdk_public_reference.md index 08efd95cda..3aa9d9aa57 100644 --- a/docs/gdk_public_reference.md +++ b/docs/gdk_public_reference.md @@ -1,8 +1,8 @@ # Using the public GDK to write shims How to use Microsoft's **public** GDK documentation and headers to implement the console APIs the game imports, -without copying Microsoft's files and without touching anything under NDA. A convention for contributors, not a -measurement. +without copying Microsoft's files and without touching anything under NDA. A convention for contributors; only the +table of public pages is a measurement. ## The rule in one line @@ -45,6 +45,51 @@ signatures and struct layouts. Never commit GDK files, and never use the console path: claim it in the coordination issue, open a pull request with a test that fails on `main` and passes with it ([CONTRIBUTING.md](../CONTRIBUTING.md)). +## Public pages by family + +MEASURED on 2026-11-29 from a Mac, by HTTP only; the page contents were not read. Each GDK name in +[runtime_imports.md](runtime_imports.md) (the names in backticks, not the whole import table) was looked up in two +places: the public index at `https://docs.xbox.com/_llms/en/apis/gdk-apis/system-api-reference.txt` (and its XStore +part), then directly at `https://learn.microsoft.com/en-us/gaming/gdk/docs/reference////` +(kinds `functions`, `structs`, `enums`, `handles`). A name counts as found when the page answers 200 with that name in +its title. The index is incomplete: it leaves out most of XMem and all of XNetworking, whose pages do exist on +Microsoft Learn. + +| Family | Contents page | Found | Not found | +|---|---|---|---| +| XAccessibility | [xaccessibility](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xaccessibility/xaccessibility_members) | 2 | | +| XAppCapture | [xappcapture](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xappcapture/xappcapture_members) | 1 | | +| XAsync | [xasync](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xasync/xasync_members) | 2 | | +| XAsyncProvider | [xasyncprovider](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xasyncprovider/xasyncprovider_members) | 3 | `XAsyncBeginAlloc` | +| XDisplay | [xdisplay](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xdisplay/xdisplay_members) | 3 | | +| XError | [xerror](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xerror/xerror_members) | 1 | `XErrorReport` | +| XGame | [xgame](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgame/xgame_members) | 3 | | +| XGameEvent | [xgameevent](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameevent/xgameevent_members) | 1 | | +| XGameRuntimeFeature | [xgameruntimefeature](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameruntimefeature/xgameruntimefeature_members) | 1 | | +| XGameRuntimeInit | [xgameruntimeinit](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameruntimeinit/xgameruntimeinit_members) | 1 | | +| XGameSave | [xgamesave](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesave/xgamesave_members) | 5 | | +| XGameSaveFiles | [xgamesavefiles](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesavefiles/xgamesavefiles_members) | family page only | | +| XGameStreaming | [xgamestreaming](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamestreaming/xgamestreaming_members) | 3 | | +| XGameUI | [xgameui](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameui/xgameui_members) | 1 | | +| XLauncher | [xlauncher](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xlauncher/xlauncher_members) | 1 | | +| XMem | [xmem](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xmem/xmem_members) | 13 | | +| XNetworking | [xnetworking](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/networking/xnetworking/xnetworking_members) | 2 | | +| XPackage | [xpackage](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xpackage/xpackage_members) | 2 | | +| XPersistentLocalStorage | [xpersistentlocalstorage](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members) | 2 | | +| XSpeechSynthesizer | [xspeechsynthesizer](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xspeechsynthesizer/xspeechsynthesizer_members) | 2 | | +| XStore | [xstore](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xstore/xstore_members) | 4 | `XStoreIsAvailabilityPurchasable` | +| XSystem | [xsystem](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xsystem/xsystem_members) | 7 | | +| XTaskQueue | [xtaskqueue](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xtaskqueue/xtaskqueue_members) | 4 | `XTaskQueueIsEmpty` | +| XThread | [xthread](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xthread/xthread_members) | 2 | | +| XUser | [xuser](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xuser/xuser_members) | 11 | `XUserHandle` | +| XApu (console audio) | none found | 0 | `XApuConnect`, `XApuDequeueResult`, `XApuDisconnect`, `XApuEnqueueCommand`, `XApuGetResultCount` | +| XDsp (console audio) | none found | 0 | `XDspActivate`, `XDspConnectWithMaximumStreamLimit`, `XDspDeactivate`, `XDspDisconnect`, `XDspSubmitCommand` | +| XG (console graphics) | none found | 0 | `XGCreateTextureComputer`, `XGSuggestSwizzleMode` | + +"Not found" means no page at the index or at the usual paths on that date; the five names in the upper rows may +still be documented under another path or name. For the last three rows no public page was found at all: treat +them like `d3d12_xs` above and recover what a shim needs from the game's call sites. + ## Lines not to cross - **Do not copy GDK headers, samples or documentation text into the repository.** They are under Microsoft's