From 160d80d5ccedae61758c83a4e567b933e6a4adc8 Mon Sep 17 00:00:00 2001 From: The-Little-Wolf <116989599+The-Little-Wolf@users.noreply.github.com> Date: Sun, 29 Dec 2024 05:47:12 -0800 Subject: [PATCH] [Xam/Enum] Implement EnumerateMediaObjects Functions According to xam versions 8955 and 12611 all EnumerateMediaObjects are the same function and only return 0x80004001 --- src/xenia/kernel/xam/xam_enum.cc | 12 ++++++++++++ src/xenia/xbox.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/xenia/kernel/xam/xam_enum.cc b/src/xenia/kernel/xam/xam_enum.cc index aba839a67..8a397294c 100644 --- a/src/xenia/kernel/xam/xam_enum.cc +++ b/src/xenia/kernel/xam/xam_enum.cc @@ -167,6 +167,18 @@ dword_result_t XamProfileEnumerate_entry(dword_t handle, dword_t flags, } DECLARE_XAM_EXPORT1(XamProfileEnumerate, kNone, kImplemented); +dword_result_t EnumerateMediaObjects_entry() { return X_E_NOT_IMPLEMENTED; } +DECLARE_XAM_EXPORT1(EnumerateMediaObjects, kNone, kStub); + +dword_result_t EnumerateMediaObjects__entry() { return X_E_NOT_IMPLEMENTED; } +DECLARE_XAM_EXPORT1(EnumerateMediaObjects_, kNone, kStub); + +dword_result_t EnumerateMediaObjects_0_entry() { return X_E_NOT_IMPLEMENTED; } +DECLARE_XAM_EXPORT1(EnumerateMediaObjects_0, kNone, kStub); + +dword_result_t EnumerateMediaObjects_1_entry() { return X_E_NOT_IMPLEMENTED; } +DECLARE_XAM_EXPORT1(EnumerateMediaObjects_1, kNone, kStub); + } // namespace xam } // namespace kernel } // namespace xe diff --git a/src/xenia/xbox.h b/src/xenia/xbox.h index e7bedd73b..5c46cfba8 100644 --- a/src/xenia/xbox.h +++ b/src/xenia/xbox.h @@ -121,6 +121,7 @@ typedef uint32_t X_HRESULT; #define X_E_FALSE static_cast(0x80000000L) #define X_E_SUCCESS X_HRESULT_FROM_WIN32(X_ERROR_SUCCESS) +#define X_E_NOT_IMPLEMENTED static_cast(0x80004001L) #define X_E_FAIL static_cast(0x80004005L) #define X_E_NO_MORE_FILES X_HRESULT_FROM_WIN32(X_ERROR_NO_MORE_FILES) #define X_E_INVALIDARG X_HRESULT_FROM_WIN32(X_ERROR_INVALID_PARAMETER)