From 70cb0cb1267e01e65698b69f71abd3e90ece1f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 18 Aug 2017 01:40:15 +0200 Subject: [PATCH] WFSI: Implement GET_VERSION. This ioctl writes a constant value to the output buffer. --- Source/Core/Core/IOS/WFS/WFSI.cpp | 5 +++++ Source/Core/Core/IOS/WFS/WFSI.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Source/Core/Core/IOS/WFS/WFSI.cpp b/Source/Core/Core/IOS/WFS/WFSI.cpp index 8a33d66721..ddf55b8acf 100644 --- a/Source/Core/Core/IOS/WFS/WFSI.cpp +++ b/Source/Core/Core/IOS/WFS/WFSI.cpp @@ -311,6 +311,11 @@ IPCCommandResult WFSI::IOCtl(const IOCtlRequest& request) WARN_LOG(IOS_WFS, "IOCTL_WFSI_DELETE_TITLE: unimplemented"); break; + case IOCTL_WFSI_GET_VERSION: + INFO_LOG(IOS_WFS, "IOCTL_WFSI_GET_VERSION"); + Memory::Write_U32(0x20, request.buffer_out); + break; + case IOCTL_WFSI_IMPORT_TITLE_CANCEL: { INFO_LOG(IOS_WFS, "IOCTL_WFSI_IMPORT_TITLE_CANCEL"); diff --git a/Source/Core/Core/IOS/WFS/WFSI.h b/Source/Core/Core/IOS/WFS/WFSI.h index d6f07dfb9b..6d3346d097 100644 --- a/Source/Core/Core/IOS/WFS/WFSI.h +++ b/Source/Core/Core/IOS/WFS/WFSI.h @@ -97,6 +97,9 @@ private: IOCTL_WFSI_FINALIZE_TITLE_INSTALL = 0x06, IOCTL_WFSI_DELETE_TITLE = 0x17, + + IOCTL_WFSI_GET_VERSION = 0x1b, + IOCTL_WFSI_IMPORT_TITLE_CANCEL = 0x2f, IOCTL_WFSI_INIT = 0x81,