diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2022-08-14 18:21:25 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2022-08-16 12:47:26 -0700 |
| commit | 4ae475b6a19e6b4d9d52c2fe2cef9c5f34ead23c (patch) | |
| tree | fea5d9a67c04a3296aaacf8bd3301194b6c8a764 /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | b6a18b0da51ec0733dc6fcc78725fa4f800fc035 (diff) | |
fix verifying wii dev signatures
allows verifying dev-signed discs and wads
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 50cfb2a17f..109b4c2f64 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -574,7 +574,9 @@ bool VolumeVerifier::CheckPartition(const Partition& partition) if (!m_is_datel) { - IOS::HLE::Kernel ios; + const auto console_type = + IsDebugSigned() ? IOS::HLE::IOSC::ConsoleType::RVT : IOS::HLE::IOSC::ConsoleType::Retail; + IOS::HLE::Kernel ios(console_type); const auto es = ios.GetES(); const std::vector<u8>& cert_chain = m_volume.GetCertificateChain(partition); @@ -978,7 +980,7 @@ void VolumeVerifier::CheckMisc() if (m_volume.GetVolumeType() == Platform::WiiWAD) { - IOS::HLE::Kernel ios; + IOS::HLE::Kernel ios(m_ticket.GetConsoleType()); const auto es = ios.GetES(); const std::vector<u8>& cert_chain = m_volume.GetCertificateChain(PARTITION_NONE); @@ -1456,7 +1458,8 @@ void VolumeVerifier::Finish() { m_result.summary_text += Common::GetStringT("\n\nBecause this title is not for retail Wii consoles, " - "Dolphin cannot verify that it hasn't been tampered with."); + "Dolphin cannot ensure that it hasn't been tampered with, even if " + "signatures appear valid."); } } |
