Converting some exports to the new way.
This commit is contained in:
@@ -18,27 +18,14 @@ namespace kernel {
|
||||
|
||||
// TODO(benvanik): actually check to see if these are the same.
|
||||
void VdQueryVideoMode(pointer_t<X_VIDEO_MODE> video_mode);
|
||||
SHIM_CALL XGetVideoMode_shim(PPCContext* ppc_context,
|
||||
KernelState* kernel_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);
|
||||
|
||||
VdQueryVideoMode(video_mode);
|
||||
void XGetVideoMode(pointer_t<X_VIDEO_MODE> video_mode) {
|
||||
VdQueryVideoMode(std::move(video_mode));
|
||||
}
|
||||
DECLARE_XAM_EXPORT(XGetVideoMode, ExportTag::kVideo | ExportTag::kStub);
|
||||
|
||||
SHIM_CALL XGetVideoCapabilities_shim(PPCContext* ppc_context,
|
||||
KernelState* kernel_state) {
|
||||
XELOGD("XGetVideoCapabilities()");
|
||||
SHIM_SET_RETURN_32(0);
|
||||
}
|
||||
dword_result_t XGetVideoCapabilities() { return 0; }
|
||||
DECLARE_XAM_EXPORT(XGetVideoCapabilities, ExportTag::kVideo | ExportTag::kStub);
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
void xe::kernel::xam::RegisterVideoExports(
|
||||
xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state) {
|
||||
SHIM_SET_MAPPING("xam.xex", XGetVideoCapabilities, state);
|
||||
SHIM_SET_MAPPING("xam.xex", XGetVideoMode, state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user