IOS/ES: Implement ES_AddTitleCancel
This commit is contained in:
parent
e656258949
commit
d6499aba50
|
@ -322,6 +322,8 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request)
|
|||
return AddContentFinish(request);
|
||||
case IOCTL_ES_ADDTITLEFINISH:
|
||||
return AddTitleFinish(request);
|
||||
case IOCTL_ES_ADDTITLECANCEL:
|
||||
return AddTitleCancel(request);
|
||||
case IOCTL_ES_GETDEVICEID:
|
||||
return ESGetDeviceID(request);
|
||||
case IOCTL_ES_GETTITLECONTENTSCNT:
|
||||
|
@ -685,6 +687,16 @@ IPCCommandResult ES::AddTitleFinish(const IOCtlVRequest& request)
|
|||
return GetDefaultReply(IPC_SUCCESS);
|
||||
}
|
||||
|
||||
IPCCommandResult ES::AddTitleCancel(const IOCtlVRequest& request)
|
||||
{
|
||||
if (!request.HasNumberOfValidVectors(0, 0) || !m_addtitle_tmd.IsValid())
|
||||
return GetDefaultReply(ES_PARAMETER_SIZE_OR_ALIGNMENT);
|
||||
|
||||
AbortImport(m_addtitle_tmd.GetTitleId(), {});
|
||||
m_addtitle_tmd.SetBytes({});
|
||||
return GetDefaultReply(IPC_SUCCESS);
|
||||
}
|
||||
|
||||
IPCCommandResult ES::ESGetDeviceID(const IOCtlVRequest& request)
|
||||
{
|
||||
if (!request.HasNumberOfValidVectors(0, 1))
|
||||
|
|
|
@ -156,6 +156,7 @@ private:
|
|||
IPCCommandResult AddContentData(const IOCtlVRequest& request);
|
||||
IPCCommandResult AddContentFinish(const IOCtlVRequest& request);
|
||||
IPCCommandResult AddTitleFinish(const IOCtlVRequest& request);
|
||||
IPCCommandResult AddTitleCancel(const IOCtlVRequest& request);
|
||||
IPCCommandResult ESGetDeviceID(const IOCtlVRequest& request);
|
||||
IPCCommandResult GetTitleContentsCount(const IOCtlVRequest& request);
|
||||
IPCCommandResult GetTitleContents(const IOCtlVRequest& request);
|
||||
|
|
Loading…
Reference in New Issue