From 61e9ba665b3a83d370d947566a6eaa62cc9d68af Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 23 May 2015 14:35:00 -0500 Subject: [PATCH] XamLoaderSetLaunchData --- src/xenia/kernel/xam_info.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam_info.cc b/src/xenia/kernel/xam_info.cc index dfa285255..3904d176c 100644 --- a/src/xenia/kernel/xam_info.cc +++ b/src/xenia/kernel/xam_info.cc @@ -84,6 +84,17 @@ SHIM_CALL XamGetExecutionId_shim(PPCContext* ppc_state, KernelState* state) { SHIM_SET_RETURN_32(0); } +SHIM_CALL XamLoaderSetLaunchData_shim(PPCContext* ppc_state, + KernelState* state) { + uint32_t data_ptr = SHIM_GET_ARG_32(0); + uint32_t data_size = SHIM_GET_ARG_32(1); + + XELOGD("XamLoaderSetLaunchData(%.8X, %d)", data_ptr, data_size); + + // Unknown return value. + SHIM_SET_RETURN_32(0); +} + SHIM_CALL XamLoaderGetLaunchDataSize_shim(PPCContext* ppc_state, KernelState* state) { uint32_t size_ptr = SHIM_GET_ARG_32(0); @@ -205,8 +216,9 @@ void xe::kernel::xam::RegisterInfoExports( SHIM_SET_MAPPING("xam.xex", XGetLanguage, state); SHIM_SET_MAPPING("xam.xex", XamVoiceIsActiveProcess, state); - SHIM_SET_MAPPING("xam.xex", XamGetExecutionId, state); + + SHIM_SET_MAPPING("xam.xex", XamLoaderSetLaunchData, state); SHIM_SET_MAPPING("xam.xex", XamLoaderGetLaunchDataSize, state); SHIM_SET_MAPPING("xam.xex", XamLoaderGetLaunchData, state); SHIM_SET_MAPPING("xam.xex", XamLoaderLaunchTitle, state);