DiscIO: Implement functions to lookup tickets

These two functions load either a signed ticket or a raw ticket from the
emulated NAND.

The ticket signature skip is refactored out of the ticket writing in
order to be usable by the raw ticket reading function.
This commit is contained in:
Pierre Bourdon
2017-01-02 00:59:21 +01:00
parent 2ed352698f
commit 650a1fdb1f
2 changed files with 70 additions and 26 deletions

View File

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