IOS/ES: Edit uid.sys on AddTitleStart

This allows channels to be registered and installed properly.
(And it is what IOS does.)
This commit is contained in:
Léo Lam 2017-02-27 23:20:58 +01:00
parent 1e3f8c1a1d
commit e5d9bcaf43
1 changed files with 3 additions and 0 deletions

View File

@ -422,6 +422,9 @@ IPCCommandResult ES::AddTitleStart(const IOCtlVRequest& request)
if (!WriteTMD(m_addtitle_tmd)) if (!WriteTMD(m_addtitle_tmd))
return GetDefaultReply(ES_WRITE_FAILURE); return GetDefaultReply(ES_WRITE_FAILURE);
DiscIO::cUIDsys uid_sys{Common::FROM_CONFIGURED_ROOT};
uid_sys.AddTitle(m_addtitle_tmd.GetTitleId());
return GetDefaultReply(IPC_SUCCESS); return GetDefaultReply(IPC_SUCCESS);
} }