From a8ade5d33b5cd84bf9c9cf8a00c404b337fd9a76 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 7 Jan 2014 23:47:35 -0800 Subject: [PATCH] Stubs for launch data. --- src/xenia/kernel/xam_info.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/xenia/kernel/xam_info.cc b/src/xenia/kernel/xam_info.cc index 35188e729..0bc375bbb 100644 --- a/src/xenia/kernel/xam_info.cc +++ b/src/xenia/kernel/xam_info.cc @@ -75,6 +75,33 @@ SHIM_CALL XGetLanguage_shim( } +SHIM_CALL XamLoaderGetLaunchDataSize_shim( + PPCContext* ppc_state, KernelState* state) { + uint32_t size_ptr = SHIM_GET_ARG_32(0); + + XELOGD( + "XamLoaderGetLaunchDataSize(%.8X)", + size_ptr); + + SHIM_SET_MEM_32(size_ptr, 0); + + SHIM_SET_RETURN(0); +} + + +SHIM_CALL XamLoaderGetLaunchData_shim( + PPCContext* ppc_state, KernelState* state) { + uint32_t buffer_ptr = SHIM_GET_ARG_32(0); + uint32_t buffer_size = SHIM_GET_ARG_32(1); + + XELOGD( + "XamLoaderGetLaunchData(%.8X, %d)", + buffer_ptr, buffer_size); + + SHIM_SET_RETURN(0); +} + + } // namespace kernel } // namespace xe @@ -85,4 +112,7 @@ void xe::kernel::xam::RegisterInfoExports( SHIM_SET_MAPPING("xam.xex", XGetAVPack, state); SHIM_SET_MAPPING("xam.xex", XGetGameRegion, state); SHIM_SET_MAPPING("xam.xex", XGetLanguage, state); + + SHIM_SET_MAPPING("xam.xex", XamLoaderGetLaunchDataSize, state); + SHIM_SET_MAPPING("xam.xex", XamLoaderGetLaunchData, state); }