[PR #1206] runtime: pin the DLL spellings the unimplemented-import policy classifies (TEST-POLICY-DLL-SPELLINGS) #1238

Open
opened 2026-11-26 20:20:33 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1206
Author: @nicoco23
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: policy-dll-spellings


📝 Commits (4)

📊 Changes

3 files changed (+20 additions, -6 deletions)

View changed files

📝 docs/audio_hal_exe_calls.md (+7 -6)
📝 runtime/shims/registry.cpp (+2 -0)
📝 runtime/test/unimplemented_policy_test.cpp (+11 -0)

📄 Description

Claimed in the coordination issue as: TEST-POLICY-DLL-SPELLINGS

#47 showed that the return class depends on the exact DLL spelling: the retail executable imports DStorageGetFactory from XCRDAPI.dll, which classify() did not know. That is fixed in main, but unimplemented_policy_test only checked dstorage_xs.dll, so dropping the xcrdapi.dll or dstorage.dll spelling broke nothing.

  • test: XCRDAPI.dll (retail casing) and dstorage.dll classify as HResult, and another xcrdapi.dll import stays Other.
  • xapu.dll and chad.dll were not in classify(), so under LEONIDA_UNIMPLEMENTED=fail an import of theirs without a shim returned 0 instead of E_NOTIMPL. classify() now names the nine functions whose shims return an HRESULT; XApuGetResultCount returns uint32_t and stays Other. The test checks all ten.
  • audio_hal_exe_calls.md no longer says none of the audio calls is on the list.

Tested: unimplemented_policy_test built and run through ctest on Windows (MSVC), passing. No game files, no GPU.

AI-assisted: yes (Claude Code).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1206 **Author:** [@nicoco23](https://github.com/nicoco23) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `policy-dll-spellings` --- ### 📝 Commits (4) - [`e136853`](https://github.com/ubiquitarianism/leonida/commit/e13685369013f90e3a742c75675e7eaf67d3fe10) runtime: pin the DLL spellings the unimplemented-import policy classifies (TEST-POLICY-DLL-SPELLINGS) - [`ef55ee5`](https://github.com/ubiquitarianism/leonida/commit/ef55ee5828ebc3f7fce7ab16929ace6b7cdeaa2a) docs: wrap the audio_hal_exe_calls.md paragraph at 120 columns (review of #1206) - [`16c98de`](https://github.com/ubiquitarianism/leonida/commit/16c98deeedbb23025c0c8944d2e50f441ce4ae28) Merge branch 'main' of https://github.com/ubiquitarianism/leonida into policy-dll-spellings - [`ef12c75`](https://github.com/ubiquitarianism/leonida/commit/ef12c755616c82d8f9cdfb739dfe4fb29db38745) registry: name xapu_queue.cpp and xapu_chad.cpp now that #1144 is merged (review of #1206) ### 📊 Changes **3 files changed** (+20 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/audio_hal_exe_calls.md` (+7 -6) 📝 `runtime/shims/registry.cpp` (+2 -0) 📝 `runtime/test/unimplemented_policy_test.cpp` (+11 -0) </details> ### 📄 Description Claimed in the coordination issue as: TEST-POLICY-DLL-SPELLINGS #47 showed that the return class depends on the exact DLL spelling: the retail executable imports DStorageGetFactory from XCRDAPI.dll, which classify() did not know. That is fixed in main, but unimplemented_policy_test only checked dstorage_xs.dll, so dropping the xcrdapi.dll or dstorage.dll spelling broke nothing. - test: XCRDAPI.dll (retail casing) and dstorage.dll classify as HResult, and another xcrdapi.dll import stays Other. - xapu.dll and chad.dll were not in classify(), so under LEONIDA_UNIMPLEMENTED=fail an import of theirs without a shim returned 0 instead of E_NOTIMPL. classify() now names the nine functions whose shims return an HRESULT; XApuGetResultCount returns uint32_t and stays Other. The test checks all ten. - audio_hal_exe_calls.md no longer says none of the audio calls is on the list. Tested: unimplemented_policy_test built and run through ctest on Windows (MSVC), passing. No game files, no GPU. AI-assisted: yes (Claude Code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1238
No description provided.