upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/registry.cpp
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-23 22:36:12 -0500
committerGitHub <noreply@github.com>2026-11-23 22:36:12 -0500
commitfabe844cd88e6fd6469ffd3d869bbe062ebefe1f (patch)
treeffd126d5d76910e65b140c235dfdcf629f292cc5 /runtime/shims/registry.cpp
parentf9e7e3e1bfa718eb4d8ca84fd1dbe617038d48d7 (diff)
parent2d7be48dec529446e0ead3393e2b3acabb29ff64 (diff)
Merge pull request #131 from Mumogg/restore-directstorage
runtime: restore the console DirectStorage shim, with the typed-error inflate it needs (RT-DSTORAGE-RESTORE, #47)
Diffstat (limited to 'runtime/shims/registry.cpp')
-rw-r--r--runtime/shims/registry.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/shims/registry.cpp b/runtime/shims/registry.cpp
index 9b3ea0437..6ec36e31c 100644
--- a/runtime/shims/registry.cpp
+++ b/runtime/shims/registry.cpp
@@ -80,7 +80,10 @@ std::vector<Lookup> g_lookups;
80// xaudio2_9.dll XAudio2Create: HRESULT (learn.microsoft.com/windows/win32/api/xaudio2/ 80// xaudio2_9.dll XAudio2Create: HRESULT (learn.microsoft.com/windows/win32/api/xaudio2/
81// xaudio2_9redist.dll nf-xaudio2-xaudio2create). xaudio2_9.dll is the console name (docs/d3d12_vulkan.md §7). 81// xaudio2_9redist.dll nf-xaudio2-xaudio2create). xaudio2_9.dll is the console name (docs/d3d12_vulkan.md §7).
82// dstorage.dll DStorageGetFactory: HRESULT (learn.microsoft.com/windows/win32/api/dstorage/ 82// dstorage.dll DStorageGetFactory: HRESULT (learn.microsoft.com/windows/win32/api/dstorage/
83// dstorage_xs.dll nf-dstorage-dstoragegetfactory). dstorage_xs.dll is the console name. 83// dstorage_xs.dll nf-dstorage-dstoragegetfactory, and the GDK's gaming/gdk/docs/reference/system/dstorage/
84// xcrdapi.dll functions/dstoragegetfactory). dstorage_xs.dll is the console name; xcrdapi.dll is a
85// console module the title may import it from (docs/directstorage.md). dstorage.cpp serves
86// it; the class is kept for a build without that shim.
84const char* const kNotHResult[] = { 87const char* const kNotHResult[] = {
85 "XAsyncCancel", "XAsyncComplete", 88 "XAsyncCancel", "XAsyncComplete",
86 "XTaskQueueCloseHandle", "XTaskQueueDispatch", "XTaskQueueGetCurrentProcessTaskQueue", 89 "XTaskQueueCloseHandle", "XTaskQueueDispatch", "XTaskQueueGetCurrentProcessTaskQueue",
@@ -111,7 +114,7 @@ ReturnClass classify(const std::string& dll, const std::string& name) {
111 if (name == "XAudio2Create") return ReturnClass::HResult; 114 if (name == "XAudio2Create") return ReturnClass::HResult;
112 } else if (dll == "gameinput.dll") { 115 } else if (dll == "gameinput.dll") {
113 if (name == "GameInputCreate") return ReturnClass::HResult; 116 if (name == "GameInputCreate") return ReturnClass::HResult;
114 } else if (dll == "dstorage.dll" || dll == "dstorage_xs.dll") { 117 } else if (dll == "dstorage.dll" || dll == "dstorage_xs.dll" || dll == "xcrdapi.dll") {
115 if (name == "DStorageGetFactory") return ReturnClass::HResult; 118 if (name == "DStorageGetFactory") return ReturnClass::HResult;
116 } else if (dll == "acphal.dll") { 119 } else if (dll == "acphal.dll") {
117 if (name == "AcpHalAllocateShapeContexts" || name == "AcpHalCreate" || 120 if (name == "AcpHalAllocateShapeContexts" || name == "AcpHalCreate" ||