From 58743416bbdeb01ef36838c555bfc5419dc32e7f Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 22 May 2018 22:39:52 +0200 Subject: Make the support for unencrypted Wii disc images less broken These disc images are only used on dev units and not retail units. There are two important differences compared to normal Wii disc images: - The data starts 0x8000 bytes into each partition instead of 0x20000 - The data of a partition is stored unencrypted and contains no hashes Our old implementation was just guesswork and doesn't work at all. According to testing by GerbilSoft, this commit's implementation is able to read and extract files in the filesystem correctly, but the tested game still isn't able to boot. (It's thanks to their info about unencrypted disc images that I was able to make this commit.) --- Source/Core/DolphinQt2/Config/FilesystemWidget.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Source/Core/DolphinQt2/Config/FilesystemWidget.cpp') diff --git a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp index f0a84094bb..bfae5b78df 100644 --- a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp @@ -219,9 +219,12 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) if (!folder.isEmpty()) ExtractPartition(partition, folder); }); - menu->addSeparator(); - AddAction(menu, tr("Check Partition Integrity"), this, - [this, partition] { CheckIntegrity(partition); }); + if (m_volume->IsEncryptedAndHashed()) + { + menu->addSeparator(); + AddAction(menu, tr("Check Partition Integrity"), this, + [this, partition] { CheckIntegrity(partition); }); + } break; case EntryType::File: AddAction(menu, tr("Extract File..."), this, [this, partition, path] { -- cgit v1.2.3