fix(dstorage): factory and queue IIDs of a newer kit #6

Manually merged
github merged 1 commit from gh-pr/6/head into gh-pr/6/base 2026-11-27 02:46:16 +00:00
Owner

@⁠arugerdev on GitHub · 2026-11-23 17:30 UTC · original
arugerdev:fix/dstorage-newer-kit → main · +138 −16 · 3 files · 1 commits · merged 2026-11-23 19:24 UTC

A famous newer title built with the April 2026 kit (GXDK 10.0.26100.7901, per its .xbld section) asks DStorageGetFactory for a factory IID XValkyrie does not know, gets E_NOINTERFACE and stops on its own int3 a few seconds after starting.

This change:

  • answers 62959d11-d45f-4884-a0a3-f7862ea243ae as the factory, as well as the IID already known. It is the same object.
  • adds the two slots that factory has after SetStagingBufferSize:
    • slot 9: the title never calls it through the factory it keeps, so it is not known. It logs once and returns E_NOTIMPL.
    • slot 10: (desc, iid, out) like CreateQueue. The queue description is followed by 8 more bytes, which the title sets to 1 and which are not read here. It makes the same queue.
  • makes the queue answer 3c02cb0c-c050-4195-99a1-a1ce94ba33c5, the IID the title passes to slot 10, as well as the old one.

Older titles see no difference: the old IIDs and slots 0 to 8 are unchanged, and the new slots come after them.

Where it comes from

The disassembly of that title, which has no symbols. The IIDs are the ones it passes. The slots and arguments are the ones its calls use:

  • slot 4 (OpenFile) and slot 5 (CreateStatusArray), with the file and status IIDs XValkyrie already has;
  • slot 8, with 32 MiB;
  • slot 10, with the description above.

Through the queue it uses slot 3 (EnqueueRequest, same Request layout) and slot 8 (Close).
No SDK headers were used.

Testing

  • build.cmd --test passes, including three new cases in tests/dstorage.cpp: older IIDs and slot 3 unchanged, newer IIDs and slot
**@⁠arugerdev** on GitHub · 2026-11-23 17:30 UTC · [original](https://github.com/sammwyy/xvalkyrie/pull/6) `arugerdev:fix/dstorage-newer-kit` → `main` · +138 −16 · 3 files · 1 commits · merged 2026-11-23 19:24 UTC A _famous newer title_ built with the April 2026 kit (GXDK 10.0.26100.7901, per its `.xbld` section) asks `DStorageGetFactory` for a factory IID XValkyrie does not know, gets `E_NOINTERFACE` and stops on its own `int3` a few seconds after starting. This change: - answers `62959d11-d45f-4884-a0a3-f7862ea243ae` as the factory, as well as the IID already known. It is the same object. - adds the two slots that factory has after `SetStagingBufferSize`: - slot 9: the title never calls it through the factory it keeps, so it is not known. It logs once and returns `E_NOTIMPL`. - slot 10: `(desc, iid, out)` like `CreateQueue`. The queue description is followed by 8 more bytes, which the title sets to 1 and which are not read here. It makes the same queue. - makes the queue answer `3c02cb0c-c050-4195-99a1-a1ce94ba33c5`, the IID the title passes to slot 10, as well as the old one. Older titles see no difference: the old IIDs and slots 0 to 8 are unchanged, and the new slots come after them. **Where it comes from** The disassembly of that title, which has no symbols. The IIDs are the ones it passes. The slots and arguments are the ones its calls use: - slot 4 (`OpenFile`) and slot 5 (`CreateStatusArray`), with the file and status IIDs XValkyrie already has; - slot 8, with 32 MiB; - slot 10, with the description above. Through the queue it uses slot 3 (`EnqueueRequest`, same `Request` layout) and slot 8 (`Close`). No SDK headers were used. **Testing** - `build.cmd --test` passes, including three new cases in `tests/dstorage.cpp`: older IIDs and slot 3 unchanged, newer IIDs and slot
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:46:13 +00:00
github manually merged commit 14da370d07 into gh-pr/6/base 2026-11-27 02:46:16 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/sammwyy--xvalkyrie!6
No description provided.