mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
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#177
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/124
Author: @ItsMrDubey
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:xcrdapi-dstorage-class📝 Commits (1)
1c6d62dshims: DStorageGetFactory from XCRDAPI.dll is classified as HRESULT📊 Changes
2 files changed (+5 additions, -2 deletions)
View changed files
📝
runtime/shims/registry.cpp(+3 -2)📝
runtime/test/unimplemented_policy_test.cpp(+2 -0)📄 Description
Claimed in the coordination issue as: RT-XCRDAPI-CLASS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7119646964)
What and why
This is the classification half of #47.
runtime/shims/registry.cppgaveDStorageGetFactoryReturnClass::HResultonly fordstorage.dll/dstorage_xs.dll. The retail executable imports it fromXCRDAPI.dll(docs/runtime_imports.md:161), soclassify()fell through toReturnClass::Other. That is thehresult=0 other=1in the #47 dry run. UnderLEONIDA_UNIMPLEMENTED=failthe import returned 0 (S_OK with a null factory) instead ofE_NOTIMPL.The fix adds
xcrdapi.dllto the DStorage branch ofclassify()and to the comment block that documents each DLL's class.unimplemented_policy_test.cppnow also asserts the retail spelling (XCRDAPI.dll, mixed case, which also exercises the lowercasing).This is the same change as the
registry.cpphunk ofold-pr/9964by @piyonchu ("implement console DirectStorage shims (XCRDAPI / dstorage_xs)"), credited in the commit message. The 849-line DirectStorage shim from that branch is not carried here. Stop 5 itself (a workingDStorageGetFactory, i.e. old-pr/9964 or old-pr/4348) still needs someone with the game to carry and verify it.Refs #47
Tested
Windows 11, MSVC 14.29 (VS 2019 Build Tools), CMake 4.4 + Ninja, no GPU. Built only
unimplemented_policy_testin a separate build dir. This machine has no full 10.0.26100 SDK (only the WDK headers) and its 14.29 STL predatessrc/crt_timed_wait.cpp, so I configured with-DGTA6RT_SDK_HAS_ROOT_SIGNATURE_1_2=1 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded. Neither affects this target's sources. No CMakeLists changes.FAIL the retail XCRDAPI name is hresultand99 checks, 1 failed, exit 1ok the retail XCRDAPI name is hresultand99 checks, 0 failed, exit 0python -I scripts/check_no_game_data.py runtime/shims/registry.cpp runtime/test/unimplemented_policy_test.cpp: cleanAI-assisted: yes
Checklist
docs/design.md.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.