From cf50de38326c530b8523b52489427435574c55c8 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Tue, 13 Aug 2024 17:36:24 +0200 Subject: [PATCH] [XBDM] Added Stub for: DmIsFastCAPEnabled Added memory allocating for DmAllocatePool --- src/xenia/kernel/xbdm/xbdm_misc.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xbdm/xbdm_misc.cc b/src/xenia/kernel/xbdm/xbdm_misc.cc index f972499c7..83d227ebd 100644 --- a/src/xenia/kernel/xbdm/xbdm_misc.cc +++ b/src/xenia/kernel/xbdm/xbdm_misc.cc @@ -31,7 +31,10 @@ namespace xbdm { dword_result_t x##_entry() { return X_STATUS_INVALID_PARAMETER; } \ DECLARE_XBDM_EXPORT1(x, kDebug, kStub) -MAKE_DUMMY_STUB_PTR(DmAllocatePool); +dword_result_t DmAllocatePool_entry(dword_t bytes) { + return kernel_memory()->SystemHeapAlloc(bytes); +}; +DECLARE_XBDM_EXPORT1(DmAllocatePool, kDebug, kImplemented); void DmCloseLoadedModules_entry(lpdword_t unk0_ptr) {} DECLARE_XBDM_EXPORT1(DmCloseLoadedModules, kDebug, kStub); @@ -151,6 +154,9 @@ dword_result_t DmGetSystemInfo_entry(pointer_t info) { } DECLARE_XBDM_EXPORT1(DmGetSystemInfo, kDebug, kStub); +dword_result_t DmIsFastCAPEnabled_entry() { return XBDM_UNSUCCESSFUL; } +DECLARE_XBDM_EXPORT1(DmIsFastCAPEnabled, kDebug, kStub); + void __CAP_Start_Profiling_entry(dword_t a1, dword_t a2) {} DECLARE_XBDM_EXPORT1(__CAP_Start_Profiling, kDebug, kStub);