summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscExtractor.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-05-26 11:56:51 +0200
committerGitHub <noreply@github.com>2018-05-26 11:56:51 +0200
commit92ec97f8997fbd511406c09d83a79728cae5ec08 (patch)
tree48d6ad6d0bb23868ad1765f75e710cd140f2f91b /Source/Core/DiscIO/DiscExtractor.cpp
parent3f81c30e8ab351d1f3eb1d1d3fae81acf0bd06c5 (diff)
parent58743416bbdeb01ef36838c555bfc5419dc32e7f (diff)
Merge pull request #6947 from JosJuice/unencrypted-wii-disc
Make the support for unencrypted Wii disc images less broken
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
-rw-r--r--Source/Core/DiscIO/DiscExtractor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp
index 7494bd5ab7..eaba17b68a 100644
--- a/Source/Core/DiscIO/DiscExtractor.cpp
+++ b/Source/Core/DiscIO/DiscExtractor.cpp
@@ -361,7 +361,8 @@ bool ExportSystemData(const Volume& volume, const Partition& partition,
success &= ExportTicket(volume, partition, export_folder + "/ticket.bin");
success &= ExportTMD(volume, partition, export_folder + "/tmd.bin");
success &= ExportCertificateChain(volume, partition, export_folder + "/cert.bin");
- success &= ExportH3Hashes(volume, partition, export_folder + "/h3.bin");
+ if (volume.IsEncryptedAndHashed())
+ success &= ExportH3Hashes(volume, partition, export_folder + "/h3.bin");
}
return success;