summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscExtractor.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-08-25 17:30:17 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-08-25 17:31:50 +0200
commit31b04149b3145c702b9febe3e24398c50bfd5b30 (patch)
tree92acf7208d0aee629e98cf5e588730665512a9ad /Source/Core/DiscIO/DiscExtractor.cpp
parent5da26f33cfa4947c93a7a1a3dd557a6f27bfd7a8 (diff)
DiscIO: Fix TMD extraction
The offset that we read from the header is relative to the partition.
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
-rw-r--r--Source/Core/DiscIO/DiscExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp
index 4ebaf249fd..310ca41e9a 100644
--- a/Source/Core/DiscIO/DiscExtractor.cpp
+++ b/Source/Core/DiscIO/DiscExtractor.cpp
@@ -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,