Stub for avatar stuff to make it immediately bail.
This commit is contained in:
parent
36dc6dd864
commit
b8d1d3cf35
|
@ -162,6 +162,7 @@
|
|||
<ClCompile Include="src\xenia\kernel\user_profile.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\util\shim_utils.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\util\xex2.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\xam_avatar.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\xam_content.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\xam_info.cc" />
|
||||
<ClCompile Include="src\xenia\kernel\xam_input.cc" />
|
||||
|
|
|
@ -721,6 +721,9 @@
|
|||
<ClCompile Include="src\xenia\kernel\xboxkrnl_crypt.cc">
|
||||
<Filter>src\xenia\kernel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="src\xenia\kernel\xam_avatar.cc">
|
||||
<Filter>src\xenia\kernel</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="src\xenia\emulator.h">
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/base/logging.h"
|
||||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/kernel/util/shim_utils.h"
|
||||
#include "xenia/kernel/xam_private.h"
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
|
||||
dword_result_t XamAvatarInitialize(
|
||||
dword_t unk1, // 1, 4, etc
|
||||
dword_t unk2, // 0 or 1
|
||||
dword_t processor_number, // for thread creation?
|
||||
lpdword_t function_ptrs, // 20b, 5 pointers
|
||||
lpunknown_t unk5, // ptr in data segment
|
||||
dword_t unk6 // flags - 0x00300000, 0x30, etc
|
||||
) {
|
||||
// Negative to fail. Game should immediately call XamAvatarShutdown.
|
||||
return -1;
|
||||
}
|
||||
DECLARE_XAM_EXPORT(XamAvatarInitialize, ExportTag::kStub);
|
||||
|
||||
void XamAvatarShutdown() {
|
||||
// No-op.
|
||||
}
|
||||
DECLARE_XAM_EXPORT(XamAvatarShutdown, ExportTag::kStub);
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
void xe::kernel::xam::RegisterAvatarExports(
|
||||
xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state) {}
|
|
@ -21,6 +21,7 @@ XamModule::XamModule(Emulator* emulator, KernelState* kernel_state)
|
|||
RegisterExportTable(export_resolver_);
|
||||
|
||||
// Register all exported functions.
|
||||
xam::RegisterAvatarExports(export_resolver_, kernel_state_);
|
||||
xam::RegisterContentExports(export_resolver_, kernel_state_);
|
||||
xam::RegisterInfoExports(export_resolver_, kernel_state_);
|
||||
xam::RegisterInputExports(export_resolver_, kernel_state_);
|
||||
|
|
|
@ -22,6 +22,8 @@ xe::cpu::Export* RegisterExport_xam(xe::cpu::Export* export);
|
|||
|
||||
namespace xam {
|
||||
// Registration functions, one per file.
|
||||
void RegisterAvatarExports(xe::cpu::ExportResolver* export_resolver,
|
||||
KernelState* kernel_state);
|
||||
void RegisterContentExports(xe::cpu::ExportResolver* export_resolver,
|
||||
KernelState* kernel_state);
|
||||
void RegisterInfoExports(xe::cpu::ExportResolver* export_resolver,
|
||||
|
|
Loading…
Reference in New Issue