From c3861467525060c48038dff2915e44ca0076a336 Mon Sep 17 00:00:00 2001 From: Cancerous Date: Thu, 19 Dec 2019 17:24:59 -0500 Subject: [PATCH] [Kernel] stubs for 9199 (eventually) --- src/xenia/kernel/xam/xam_misc.cpp | 30 ++++++++++++++++++++++++++++++ src/xenia/kernel/xam/xam_module.cc | 1 + src/xenia/kernel/xam/xam_private.h | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 src/xenia/kernel/xam/xam_misc.cpp diff --git a/src/xenia/kernel/xam/xam_misc.cpp b/src/xenia/kernel/xam/xam_misc.cpp new file mode 100644 index 000000000..c7d3381d4 --- /dev/null +++ b/src/xenia/kernel/xam/xam_misc.cpp @@ -0,0 +1,30 @@ + +#include "xenia/base/logging.h" +#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 XamDoesOmniNeedConfiguration(dword_t unk) { + return 0; +} +DECLARE_XAM_EXPORT1(XamDoesOmniNeedConfiguration, kMisc, kStub); + +dword_result_t XamFirstRunExperienceShouldRun(dword_t unk) { + if( 0 ) { // cvars::xconfig_initial_setup) { + return 1; + } else { + return 0; + } +} +DECLARE_XAM_EXPORT1(XamFirstRunExperienceShouldRun, kMisc, kStub); + +void RegisterMiscExports(xe::cpu::ExportResolver* export_resolver, + KernelState* kernel_state) {} +} // namespace xam +} // namespace kernel +} // namespace xe \ No newline at end of file diff --git a/src/xenia/kernel/xam/xam_module.cc b/src/xenia/kernel/xam/xam_module.cc index 1bb7dbdc6..3d14549b0 100644 --- a/src/xenia/kernel/xam/xam_module.cc +++ b/src/xenia/kernel/xam/xam_module.cc @@ -29,6 +29,7 @@ XamModule::XamModule(Emulator* emulator, KernelState* kernel_state) RegisterInfoExports(export_resolver_, kernel_state_); RegisterInputExports(export_resolver_, kernel_state_); RegisterLocaleExports(export_resolver_, kernel_state_); + RegisterMiscExports(export_resolver_, kernel_state_); RegisterMsgExports(export_resolver_, kernel_state_); RegisterNetExports(export_resolver_, kernel_state_); RegisterNotifyExports(export_resolver_, kernel_state_); diff --git a/src/xenia/kernel/xam/xam_private.h b/src/xenia/kernel/xam/xam_private.h index 503562c70..3da12ec93 100644 --- a/src/xenia/kernel/xam/xam_private.h +++ b/src/xenia/kernel/xam/xam_private.h @@ -31,6 +31,8 @@ void RegisterInputExports(xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state); void RegisterLocaleExports(xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state); +void RegisterMiscExports(xe::cpu::ExportResolver* export_resolver, + KernelState* kernel_state); void RegisterMsgExports(xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state); void RegisterNetExports(xe::cpu::ExportResolver* export_resolver,