startup-runtime: confirm what the save container lookup returns for a name with no container directory #2160
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2160
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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
0x80830010and does not run the callback. The earlier stub returned0and also did not run thecallback. (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:
S_OK,0x80830010or anotherE_GS_*code;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
XGameSave.hheader forXGameSaveGetContainerInfo. Notethe documented return values and the header revision.
XGameSaveGetContainerInfofor a name that wasnever 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 committedcontainer, then assert the platform's result code and the callback count (0 or 1). The current check
expects
0x80830010and no callback. Change it andsave_read::missing_containertogether, and updatethe sentence in
docs/startup-runtime.mdthat marks the code as unverified.Refs #1200 (introduced with #2159)
AI-assisted (Claude Code).
@R0Y00 on GitHub · 2026-11-25 03:21 UTC · original
The public GDK reference lists common errors and treats
E_GS_INVALID_CONTAINER_NAMEas an invalid name in its example. It gives no separate outcome for a syntactically valid but unused name. Microsoft referenceOne 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.