mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
DiscExtractor: Fix extracting certificate chain and H3 hashes
Dolphin is currently not using this data, but still, the way it was being extracted was not at all correct.
This commit is contained in:
parent
1fead4ffb6
commit
c558803cbd
@ -205,7 +205,7 @@ bool ExportCertificateChain(const Volume& volume, const Partition& partition,
|
||||
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 ExportH3Hashes(const Volume& volume, const Partition& partition,
|
||||
@ -219,7 +219,7 @@ bool ExportH3Hashes(const Volume& volume, const Partition& partition,
|
||||
if (!offset)
|
||||
return false;
|
||||
|
||||
return ExportData(volume, PARTITION_NONE, *offset, 0x18000, export_filename);
|
||||
return ExportData(volume, PARTITION_NONE, partition.offset + *offset, 0x18000, export_filename);
|
||||
}
|
||||
|
||||
bool ExportHeader(const Volume& volume, const Partition& partition,
|
||||
|
Loading…
Reference in New Issue
Block a user