From e0f3458026f2c5ce4ed72272a820863d33689a6b Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 9 Apr 2020 17:52:56 -0500 Subject: [PATCH] [Kernel] Maybe stub DmGetXbeInfo better. --- 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 e734b43ec..df53416bd 100644 --- a/src/xenia/kernel/xbdm/xbdm_misc.cc +++ b/src/xenia/kernel/xbdm/xbdm_misc.cc @@ -33,7 +33,13 @@ DECLARE_XBDM_EXPORT1(DmCloseLoadedModules, kDebug, kStub); MAKE_DUMMY_STUB_STATUS(DmFreePool); -MAKE_DUMMY_STUB_STATUS(DmGetXbeInfo); +dword_result_t DmGetXbeInfo() { + // TODO(gibbed): Crackdown appears to expect this as success? + // Unknown arguments -- let's hope things don't explode. + return 0x02DA0000; +} +DECLARE_XBDM_EXPORT1(DmGetXbeInfo, kDebug, kStub); + MAKE_DUMMY_STUB_STATUS(DmGetXboxName); dword_result_t DmIsDebuggerPresent() { return 0; }