mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
VolumeWiiCrypted: Get title IDs from TicketReader
This commit is contained in:
parent
5c68a03ae4
commit
26f5b53ecb
1 changed files with 5 additions and 1 deletions
|
@ -224,7 +224,11 @@ Partition CVolumeWiiCrypted::GetGamePartition() const
|
||||||
|
|
||||||
bool CVolumeWiiCrypted::GetTitleID(u64* buffer, const Partition& partition) const
|
bool CVolumeWiiCrypted::GetTitleID(u64* buffer, const Partition& partition) const
|
||||||
{
|
{
|
||||||
return m_pReader->ReadSwapped(partition.offset + 0x1DC, buffer);
|
const IOS::ES::TicketReader& ticket = GetTicket(partition);
|
||||||
|
if (!ticket.IsValid())
|
||||||
|
return false;
|
||||||
|
*buffer = ticket.GetTitleId();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const IOS::ES::TicketReader& CVolumeWiiCrypted::GetTicket(const Partition& partition) const
|
const IOS::ES::TicketReader& CVolumeWiiCrypted::GetTicket(const Partition& partition) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue