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

Open
opened 2026-11-27 00:01:36 +00:00 by github-bot · 1 comment
Owner

@⁠NiiRoZz on GitHub · 2026-11-25 01:53 UTC · original

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).

**@⁠NiiRoZz** on GitHub · 2026-11-25 01:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2160) ## 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:01:37 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-25 03:21 UTC · original

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.

**@⁠R0Y00** on GitHub · 2026-11-25 03:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2160#issuecomment-7151842573) 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.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#2160
No description provided.