IOS/ES: Implement ES_AddTicket.

Refactor the existing DiscIO::AddTicket to not require the caller to
pass the requested title ID. We do not have the title ID in the ES case,
and it needs to be extracted from the ticket. Since this is always a
safe operation to do (title ID is always in the ticket), the
implementation is made default.
This commit is contained in:
Pierre Bourdon
2017-01-01 22:09:57 +01:00
parent c30635c70a
commit 2ed352698f
3 changed files with 42 additions and 3 deletions

View File

@ -22,7 +22,7 @@ namespace DiscIO
{
enum class Region;
bool AddTicket(u64 title_id, const std::vector<u8>& ticket);
bool AddTicket(const std::vector<u8>& ticket);
class CNANDContentData
{