DiscIO: Fix TMD extraction
The offset that we read from the header is relative to the partition.
This commit is contained in:
parent
5da26f33cf
commit
31b04149b3
|
@ -166,7 +166,7 @@ bool ExportTMD(const Volume& volume, const Partition& partition, const std::stri
|
|||
if (!size || !offset)
|
||||
return false;
|
||||
|
||||
return ExportData(volume, PARTITION_NONE, *offset, *size, export_filename);
|
||||
return ExportData(volume, PARTITION_NONE, partition.offset + *offset, *size, export_filename);
|
||||
}
|
||||
|
||||
bool ExportCertificateChain(const Volume& volume, const Partition& partition,
|
||||
|
|
Loading…
Reference in New Issue