mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #231] runtime/shims: implement console DirectStorage shims (XCRDAPI / dstorage_xs) #284
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#284
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/231
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9964📝 Commits (1)
5b02252runtime/shims: implement console DirectStorage shims (XCRDAPI / dstorage_xs)📊 Changes
7 files changed (+1210 additions, -3 deletions)
View changed files
📝
runtime/CMakeLists.txt(+16 -0)➕
runtime/shims/dstorage.cpp(+849 -0)📝
runtime/shims/file_system.cpp(+17 -0)📝
runtime/shims/file_system.h(+4 -0)📝
runtime/shims/registry.cpp(+1 -1)➕
runtime/test/dstorage_test.cpp(+321 -0)📝
scripts/build_runtime.ps1(+2 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Clean-room console DirectStorage shims for
XCRDAPI.dll(DStorageGetFactory), plusdstorage_xs.dllanddstorage.dllaliases, backed by static PE/ABI verification of the Xbox Series COM call sites.What changed
runtime/shims/dstorage.cppservingDStorageGetFactory(xcrdapi.dll,dstorage_xs.dll,dstorage.dll) with COM implementations matching the console ABI:IDStorageFactoryX(OpenFile,CreateStatusArray,CreateQueueat console vtable slot 10 and slot 3 alias,SetStagingBufferSize,SetDebugFlags,SetCpuAffinity,SetDisableBypassIO)IDStorageFileX(Close,GetFileInformation, thread-safe 64-bit rangedReadFileoverrt::fs::open_read_only)IDStorageStatusArrayX(IsComplete,GetHResult)IDStorageQueueX(EnqueueRequestwith consoleDestination-first layout, memory-source bit22, low codec byte0raw /1zlib;EnqueueStatus;Submitat console vtable slot 6;Closeat slot 8;CancelRequestsWithTag;EnqueueSignal)inflate_zlib) failing closed (E_NOTIMPL/ERROR_INVALID_DATA) on unsupported codecs or truncated streams; zero_Init_thread_headerTLS guards.rt::fs::open_read_onlyinruntime/shims/file_system.h/runtime/shims/file_system.cppsoOpenFileinheritsGAME:/G:/T:/ overlay precedence, deletion markers, and..traversal refusal without duplicating path resolution."xcrdapi.dll"DStorageGetFactory(ReturnClass::HResult) classification inruntime/shims/registry.cpp.runtime/test/dstorage_test.cppand wireddstorage_test/dstorage.cppinruntime/CMakeLists.txtandscripts/build_runtime.ps1.Verification
dstorage_testandfile_system_test(cmake --build runtime/build --target dstorage_test file_system_test): 0 warnings indstorage.cppanddstorage_test.cpp.ctest --test-dir runtime/build -R "^(dstorage|file_system)$" --output-on-failure:2/2passed (dstorage,file_system).dumpbin /symbolsondstorage.cpp.objandfile_system.cpp.obj:0_Init_thread_headerreferences.python -m unittest tests/test_ctest_registration.py:4/4OK.python scripts/check_no_game_data.py&git diff --check: clean.Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116843209
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.