summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-08-18 01:40:15 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-08-22 23:41:38 +0200
commit70cb0cb1267e01e65698b69f71abd3e90ece1f4a (patch)
treecf6b13526b28599f0fdabf472ed507ba409c2cf1 /Source/Core
parent8a5d24ab4b6726637c279089204180c6b4fb8bbc (diff)
WFSI: Implement GET_VERSION.
This ioctl writes a constant value to the output buffer.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/WFS/WFSI.cpp5
-rw-r--r--Source/Core/Core/IOS/WFS/WFSI.h3
2 files changed, 8 insertions, 0 deletions
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,