startup-runtime: confirm what the save container lookup returns for a name with no container directory #2152

Open
opened 2026-11-25 01:53:18 +00:00 by NiiRoZz · 1 comment
NiiRoZz commented 2026-11-25 01:53:18 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T01:53:18Z.


Problem

The local game-save stand-in answers container lookup (provider 704c3f58-e629-4cc2-b197-30511b996fe2,
interface 1bfff3af-f14a-40a3-8e35-9ada906593f9, slot 13, argument layout from the public header order:
provider, name, context, callback). When no container directory has that name, in #2159 it returns
0x80830010 and does not run the callback. The earlier stub returned 0 and also did not run the
callback. (A container created through slot 16 but never submitted has a directory and is reported
with 0 blobs.)

Neither result has been checked against the platform API. We still need to know:

  • which HRESULT the platform returns for a name with no container: S_OK, 0x80830010 or another
    E_GS_* code;
  • whether the callback runs at all in that case;
  • whether the answer depends on the provider's sync mode or on the name's case.

A caller that treats a failure differently from an empty success may take another path on a first
start, so the choice matters.

What a contributor could check

  • Read the public GDK documentation and the XGameSave.h header for XGameSaveGetContainerInfo. Note
    the documented return values and the header revision.
  • On a PC with the GDK, a source-built program calls XGameSaveGetContainerInfo for a name that was
    never created. It records the HRESULT and the number of callback invocations, then does the same for
    a name that exists (the positive control). Report the GDK version, the Windows build and the exact
    output.

Fixture that would pin it

Extend tests/startup_gamesave_read.cpp (reader process). Call slot 13 for a name with no committed
container, then assert the platform's result code and the callback count (0 or 1). The current check
expects 0x80830010 and no callback. Change it and save_read::missing_container together, and update
the sentence in docs/startup-runtime.md that marks the code as unverified.

Refs #1200 (introduced with #2159)

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6595321971 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2160). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T01:53:18Z. --- ## Problem The local game-save stand-in answers container lookup (provider `704c3f58-e629-4cc2-b197-30511b996fe2`, interface `1bfff3af-f14a-40a3-8e35-9ada906593f9`, slot 13, argument layout from the public header order: provider, name, context, callback). When no container directory has that name, in #2159 it returns `0x80830010` and does not run the callback. The earlier stub returned `0` and also did not run the callback. (A container created through slot 16 but never submitted has a directory and is reported with 0 blobs.) Neither result has been checked against the platform API. We still need to know: - which HRESULT the platform returns for a name with no container: `S_OK`, `0x80830010` or another `E_GS_*` code; - whether the callback runs at all in that case; - whether the answer depends on the provider's sync mode or on the name's case. A caller that treats a failure differently from an empty success may take another path on a first start, so the choice matters. ## What a contributor could check - Read the public GDK documentation and the `XGameSave.h` header for `XGameSaveGetContainerInfo`. Note the documented return values and the header revision. - On a PC with the GDK, a source-built program calls `XGameSaveGetContainerInfo` for a name that was never created. It records the HRESULT and the number of callback invocations, then does the same for a name that exists (the positive control). Report the GDK version, the Windows build and the exact output. ## Fixture that would pin it Extend `tests/startup_gamesave_read.cpp` (reader process). Call slot 13 for a name with no committed container, then assert the platform's result code and the callback count (0 or 1). The current check expects `0x80830010` and no callback. Change it and `save_read::missing_container` together, and update the sentence in `docs/startup-runtime.md` that marks the code as unverified. Refs #1200 (introduced with #2159) AI-assisted (Claude Code).
R0Y00 commented 2026-11-25 04:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T03:21:44Z.


The public GDK reference lists common errors and treats E_GS_INVALID_CONTAINER_NAME as an invalid name in its example. It gives no separate outcome for a syntactically valid but unused name. Microsoft reference

One independent result would unblock the decision. In a source-built sample using the platform provider, query a fresh valid name, a created but unsubmitted container, and a committed container with distinguishable metadata. Record each HRESULT, callback count and any metadata actually delivered. If available, repeat for both provider sync modes and a case variant of the committed name. Include the command and GDK/Windows version. This is separate from provider initialization in #2179.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151842573 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2160#issuecomment-7151842573). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T03:21:44Z. --- The public GDK reference lists common errors and treats `E_GS_INVALID_CONTAINER_NAME` as an invalid name in its example. It gives no separate outcome for a syntactically valid but unused name. [Microsoft reference](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesave/functions/xgamesavegetcontainerinfo) One independent result would unblock the decision. In a source-built sample using the platform provider, query a fresh valid name, a created but unsubmitted container, and a committed container with distinguishable metadata. Record each HRESULT, callback count and any metadata actually delivered. If available, repeat for both provider sync modes and a case variant of the committed name. Include the command and GDK/Windows version. This is separate from provider initialization in #2179.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#2152
No description provided.