From f3224dc726c9362b01629c1da7bc209361a6335e Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 5 Aug 2017 16:50:50 +0200 Subject: [PATCH] WFS: Stub out unimplemented ioctl 0x08. --- Source/Core/Core/IOS/WFS/WFSSRV.cpp | 7 +++++++ Source/Core/Core/IOS/WFS/WFSSRV.h | 1 + 2 files changed, 8 insertions(+) diff --git a/Source/Core/Core/IOS/WFS/WFSSRV.cpp b/Source/Core/Core/IOS/WFS/WFSSRV.cpp index 2251b28161..d04885f985 100644 --- a/Source/Core/Core/IOS/WFS/WFSSRV.cpp +++ b/Source/Core/Core/IOS/WFS/WFSSRV.cpp @@ -44,6 +44,13 @@ IPCCommandResult WFSSRV::IOCtl(const IOCtlRequest& request) INFO_LOG(IOS, "IOCTL_WFS_INIT"); break; + case IOCTL_WFS_UNKNOWN_8: + // TODO(wfs): Figure out what this actually does. + INFO_LOG(IOS, "IOCTL_WFS_UNKNOWN_8"); + Memory::Write_U8(7, request.buffer_out); + Memory::CopyToEmu(request.buffer_out + 1, "msc01\x00\x00\x00", 8); + break; + case IOCTL_WFS_SHUTDOWN: INFO_LOG(IOS, "IOCTL_WFS_SHUTDOWN"); diff --git a/Source/Core/Core/IOS/WFS/WFSSRV.h b/Source/Core/Core/IOS/WFS/WFSSRV.h index 0741bc1922..0f4de83e3f 100644 --- a/Source/Core/Core/IOS/WFS/WFSSRV.h +++ b/Source/Core/Core/IOS/WFS/WFSSRV.h @@ -42,6 +42,7 @@ private: IOCTL_WFS_DEVICE_INFO = 0x04, IOCTL_WFS_GET_DEVICE_NAME = 0x05, IOCTL_WFS_UNMOUNT_VOLUME = 0x06, + IOCTL_WFS_UNKNOWN_8 = 0x08, IOCTL_WFS_FLUSH = 0x0a, IOCTL_WFS_GLOB_START = 0x0d, IOCTL_WFS_GLOB_NEXT = 0x0e,