From ef9f28b96640bd088ac9dbf9d1982ddde3c4566f Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 21 Dec 2019 20:58:04 +0100 Subject: [PATCH] [XAM/Media] Added stub for: XamLoaderGetMediaInfo --- src/xenia/kernel/xam/xam_info.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xenia/kernel/xam/xam_info.cc b/src/xenia/kernel/xam/xam_info.cc index 370dfff65..235c54680 100644 --- a/src/xenia/kernel/xam/xam_info.cc +++ b/src/xenia/kernel/xam/xam_info.cc @@ -436,6 +436,17 @@ dword_result_t XamQueryLiveHiveW(lpwstring_t name, lpvoid_t out_buf, } DECLARE_XAM_EXPORT1(XamQueryLiveHiveW, kNone, kStub); +void XamLoaderGetMediaInfo(lpdword_t unk1, dword_t unk2) { + // 0 - No Disc + // 1 - Game Disc + // 3 - HD DVD + // 5 - DVD + // 7 - CD + xe::store_and_swap(unk1, 0); +} + +DECLARE_XAM_EXPORT1(XamLoaderGetMediaInfo, kUserProfiles, kStub); + void RegisterInfoExports(xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state) {}