diff --git a/Source/Core/Core/IOS/WFS/WFSSRV.cpp b/Source/Core/Core/IOS/WFS/WFSSRV.cpp index 08315c48c6..1178ce2623 100644 --- a/Source/Core/Core/IOS/WFS/WFSSRV.cpp +++ b/Source/Core/Core/IOS/WFS/WFSSRV.cpp @@ -194,6 +194,16 @@ IPCCommandResult WFSSRV::IOCtl(const IOCtlRequest& request) break; } + case IOCTL_WFS_CLOSE_2: + { + // TODO(wfs): Figure out the exact semantics difference from the other + // close. + u16 fd = Memory::Read_U16(request.buffer_in + 0x4); + INFO_LOG(IOS, "IOCTL_WFS_CLOSE_2(%d)", fd); + ReleaseFileDescriptor(fd); + break; + } + case IOCTL_WFS_READ: case IOCTL_WFS_READ_ABSOLUTE: { diff --git a/Source/Core/Core/IOS/WFS/WFSSRV.h b/Source/Core/Core/IOS/WFS/WFSSRV.h index f509ae9ee1..dd1131b178 100644 --- a/Source/Core/Core/IOS/WFS/WFSSRV.h +++ b/Source/Core/Core/IOS/WFS/WFSSRV.h @@ -67,6 +67,7 @@ private: IOCTL_WFS_WRITE = 0x22, IOCTL_WFS_ATTACH_DETACH = 0x2d, IOCTL_WFS_ATTACH_DETACH_2 = 0x2e, + IOCTL_WFS_CLOSE_2 = 0x47, IOCTL_WFS_READ_ABSOLUTE = 0x48, };