diff --git a/src/xenia/kernel/xam_video.cc b/src/xenia/kernel/xam_video.cc index a93555d25..3054f9b0f 100644 --- a/src/xenia/kernel/xam_video.cc +++ b/src/xenia/kernel/xam_video.cc @@ -7,6 +7,7 @@ ****************************************************************************** */ +#include "xenia/base/logging.h" #include "xenia/kernel/kernel_state.h" #include "xenia/kernel/util/shim_utils.h" #include "xenia/kernel/xam_private.h" @@ -20,13 +21,22 @@ void xeVdQueryVideoMode(X_VIDEO_MODE* video_mode); SHIM_CALL XGetVideoMode_shim(PPCContext* ppc_state, KernelState* state) { uint32_t video_mode_ptr = SHIM_GET_ARG_32(0); X_VIDEO_MODE* video_mode = (X_VIDEO_MODE*)SHIM_MEM_ADDR(video_mode_ptr); + + XELOGD("XGetVideoMode(%.8X)", video_mode_ptr); + xeVdQueryVideoMode(video_mode); } +SHIM_CALL XGetVideoCapabilities_shim(PPCContext* ppc_state, KernelState* state) { + XELOGD("XGetVideoCapabilities()"); + SHIM_SET_RETURN_32(0); +} + } // namespace kernel } // namespace xe void xe::kernel::xam::RegisterVideoExports( xe::cpu::ExportResolver* export_resolver, KernelState* state) { + SHIM_SET_MAPPING("xam.xex", XGetVideoCapabilities, state); SHIM_SET_MAPPING("xam.xex", XGetVideoMode, state); }