diff --git a/src/xenia/kernel/xam/xam_module_export_groups.inc b/src/xenia/kernel/xam/xam_module_export_groups.inc index d01464f93..da6a363c6 100644 --- a/src/xenia/kernel/xam/xam_module_export_groups.inc +++ b/src/xenia/kernel/xam/xam_module_export_groups.inc @@ -22,6 +22,7 @@ XE_MODULE_EXPORT_GROUP(xam, Msg) XE_MODULE_EXPORT_GROUP(xam, Net) XE_MODULE_EXPORT_GROUP(xam, Notify) XE_MODULE_EXPORT_GROUP(xam, NUI) +XE_MODULE_EXPORT_GROUP(xam, Party) XE_MODULE_EXPORT_GROUP(xam, Task) XE_MODULE_EXPORT_GROUP(xam, UI) XE_MODULE_EXPORT_GROUP(xam, User) diff --git a/src/xenia/kernel/xam/xam_party.cc b/src/xenia/kernel/xam/xam_party.cc new file mode 100644 index 000000000..fd0556baa --- /dev/null +++ b/src/xenia/kernel/xam/xam_party.cc @@ -0,0 +1,46 @@ +/** + ****************************************************************************** + * Xenia : Xbox 360 Emulator Research Project * + ****************************************************************************** + * Copyright 2021 Ben Vanik. All rights reserved. * + * Released under the BSD license - see LICENSE in the root for more details. * + ****************************************************************************** + */ + +#include "xenia/kernel/kernel_state.h" +#include "xenia/kernel/util/shim_utils.h" +#include "xenia/kernel/xam/xam_private.h" +#include "xenia/xbox.h" + +namespace xe { +namespace kernel { +namespace xam { + +dword_result_t XamPartyGetUserList(dword_t player_count, lpdword_t party_list) { + // Sonic & All-Stars Racing Transformed want specificly this code + // to skip loading party data. + // This code is not documented in NT_STATUS code list + return 0x807D0003; +} +DECLARE_XAM_EXPORT1(XamPartyGetUserList, kNone, kStub); + +dword_result_t XamPartySendGameInvites(dword_t r3, dword_t r4, dword_t r5) { + return X_ERROR_FUNCTION_FAILED; +} +DECLARE_XAM_EXPORT1(XamPartySendGameInvites, kNone, kStub); + +dword_result_t XamPartySetCustomData(dword_t r3, dword_t r4, dword_t r5) { + return X_ERROR_FUNCTION_FAILED; +} +DECLARE_XAM_EXPORT1(XamPartySetCustomData, kNone, kStub); + +dword_result_t XamPartyGetBandwidth(dword_t r3, dword_t r4) { + return X_ERROR_FUNCTION_FAILED; +} +DECLARE_XAM_EXPORT1(XamPartyGetBandwidth, kNone, kStub); + +void RegisterPartyExports(xe::cpu::ExportResolver* export_resolver, + KernelState* kernel_state) {} +} // namespace xam +} // namespace kernel +} // namespace xe