IOS/ES: Move ImportTicket write function

This commit moves the write function to where it should be (IOS),
especially when ES::ImportTicket() is the only place to use it.

Prevents misusing the ticket import function, and removes one unsafe
direct write to the NAND that does not go through IOS.

This also fixes the destination path: the session root is the one which
should be used for determining the ticket path, not the configured one.
This commit is contained in:
Léo Lam
2017-06-03 17:43:16 +02:00
parent 4af514bb3c
commit 9d52ab5144
3 changed files with 18 additions and 23 deletions

View File

@ -24,7 +24,6 @@ namespace DiscIO
enum class Region;
// TODO: move some of these to Core/IOS/ES.
bool AddTicket(const IOS::ES::TicketReader& signed_ticket);
IOS::ES::TicketReader FindSignedTicket(u64 title_id);
class CNANDContentData