diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 00:56:45 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 00:56:45 -0500 |
| commit | 64b45d07ac15dc9a9f9a8b036eb71aa6dfa7a64e (patch) | |
| tree | 9a14d8dd7d5abe0233240fcb54afa4ec07e11f49 /docs | |
| parent | ec34b54fe137c9a52e89c07273e52ad702488185 (diff) | |
Runtime: offline XDisplayImpl (HDR off, LEONIDA_HDR=1 on) and XUserDeviceImpl
XDisplayTryEnableHdrMode answers Disabled for the SDR host output, or Enabled
with the documented default tone-map luminances under LEONIDA_HDR=1. Every
device belongs to the offline user (XUserFindForDevice hands out a real
XUserHandle via xgameruntime_user.cpp); association and audio-endpoint
registrations hand out tokens; no audio endpoint of the user's own; finding a
controller shows no UI and gives an all-zero id, as on desktop.
ctest 163/163 (xgameruntime_offline twice: SDR and LEONIDA_HDR=1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/runtime_imports.md | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/runtime_imports.md b/docs/runtime_imports.md index 6d2d03eb5..0a0daa17b 100644 --- a/docs/runtime_imports.md +++ b/docs/runtime_imports.md | |||
| @@ -166,7 +166,8 @@ with `ERROR_PROC_NOT_FOUND` and is logged once. Every other module goes to the h | |||
| 166 | 166 | ||
| 167 | `runtime/shims/xgameruntime.cpp` serves the five entry points. The initializers succeed offline and log the GDK | 167 | `runtime/shims/xgameruntime.cpp` serves the five entry points. The initializers succeed offline and log the GDK |
| 168 | version and mode once. `QueryApiImpl` serves `XThreadingImpl` and `XErrorImpl` (below), and `XUserImpl`, `XGameSaveImpl`, `XStoreImpl`, | 168 | version and mode once. `QueryApiImpl` serves `XThreadingImpl` and `XErrorImpl` (below), and `XUserImpl`, `XGameSaveImpl`, `XStoreImpl`, |
| 169 | `XGameEventImpl`, `XGameUiImpl` and `XGameStreamingImpl` from xgameruntime-docs' layout (below); for any other class it logs | 169 | `XGameEventImpl`, `XGameUiImpl`, `XGameStreamingImpl`, `XDisplayImpl` and `XUserDeviceImpl` from xgameruntime-docs' |
| 170 | layout (below); for any other class it logs | ||
| 170 | the class and interface id and returns `0x80070032`, the documented error for a class the runtime doesn't provide, so | 171 | the class and interface id and returns `0x80070032`, the documented error for a class the runtime doesn't provide, so |
| 171 | the first boot with the executable lists the classes to implement next. `xgameruntime_test` drives this path through | 172 | the first boot with the executable lists the classes to implement next. `xgameruntime_test` drives this path through |
| 172 | the api-set binding `XCurl.dll` uses, and calls the two classes slot by slot. | 173 | the api-set binding `XCurl.dll` uses, and calls the two classes slot by slot. |
| @@ -278,8 +279,8 @@ The executable's first boot confirms them, or names the slots that differ. | |||
| 278 | 279 | ||
| 279 | `xgameruntime_store_test` drives the license check, add-ons, updates, package licenses and product queries. | 280 | `xgameruntime_store_test` drives the license check, add-ons, updates, package licenses and product queries. |
| 280 | 281 | ||
| 281 | `XGameEventImpl`, `XGameUiImpl` and `XGameStreamingImpl` (`runtime/shims/xgameruntime_offline.cpp`), from the same | 282 | `XGameEventImpl`, `XGameUiImpl`, `XGameStreamingImpl`, `XDisplayImpl` and `XUserDeviceImpl` |
| 282 | layout, also **not measured**: | 283 | (`runtime/shims/xgameruntime_offline.cpp`), from the same layout, also **not measured**: |
| 283 | - **`XGameEventWrite`** succeeds; the events are dropped. The first one's name is logged, and | 284 | - **`XGameEventWrite`** succeeds; the events are dropped. The first one's name is logged, and |
| 284 | `LEONIDA_LOG_GAME_EVENTS=1` logs each with its dimensions and measurements. | 285 | `LEONIDA_LOG_GAME_EVENTS=1` logs each with its dimensions and measurements. |
| 285 | - **Dialogs:** a message dialog's title, text and buttons go to the log (`[rt] game dialog:`), and it completes at | 286 | - **Dialogs:** a message dialog's title, text and buttons go to the log (`[rt] game dialog:`), and it completes at |
| @@ -294,7 +295,15 @@ layout, also **not measured**: | |||
| 294 | - **ASSUMPTION:** the parameter lists of `XGameUiShowMessageDialogAsync` and | 295 | - **ASSUMPTION:** the parameter lists of `XGameUiShowMessageDialogAsync` and |
| 295 | `XGameStreamingRegisterConnectionStateChanged`, from the GDK reference, not re-checked against the executable. | 296 | `XGameStreamingRegisterConnectionStateChanged`, from the GDK reference, not re-checked against the executable. |
| 296 | 297 | ||
| 297 | `xgameruntime_offline_test` drives the three classes. | 298 | - **HDR:** `XDisplayTryEnableHdrMode` answers Disabled, because the host output is SDR. With `LEONIDA_HDR=1` it |
| 299 | answers Enabled with the documented default tone-map luminances (0.01, 1000, 1000 nits). | ||
| 300 | - **Devices:** every device belongs to the offline user (`XUserFindForDevice` hands out an `XUserHandle` the title | ||
| 301 | closes). Association and audio-endpoint registrations hand out tokens that never fire. The user has no audio | ||
| 302 | endpoint of its own (`ERROR_NOT_FOUND`). Finding a controller shows no UI and gives an all-zero device id, as | ||
| 303 | documented for desktop. **ASSUMPTION:** `APP_LOCAL_DEVICE_ID` is 32 bytes. | ||
| 304 | |||
| 305 | `xgameruntime_offline_test` drives the five classes; `xgameruntime_offline_hdr` runs it again with | ||
| 306 | `LEONIDA_HDR=1`. | ||
| 298 | 307 | ||
| 299 | Which classes the package's GDK modules reference, from a byte search for the class and interface GUIDs that | 308 | Which classes the package's GDK modules reference, from a byte search for the class and interface GUIDs that |
| 300 | xgameruntime-docs lists (16-byte in-memory form, every `.dll` of the package; counts only, nothing else read): | 309 | xgameruntime-docs lists (16-byte in-memory form, every `.dll` of the package; counts only, nothing else read): |