From 6d1a344aabbd827f38545dc6d1f2d97838180765 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 12 Mar 2022 22:24:38 +0100 Subject: [PATCH 1/2] VolumeVerifier: Skip "lacks some data" check for Datel discs Turns out there's some Freeloader disc for the GC that triggers this despite being a good dump. This warning is mostly intended to catch Wii games that have been truncated at the 4.00 GiB or 4.38 GiB mark anyway, and if someone does have a Datel dump that has been truncated, they'll still get the "unusual size" warning. --- Source/Core/DiscIO/VolumeVerifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 593fb49b33..05070e3878 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -767,7 +767,7 @@ void VolumeVerifier::CheckVolumeSize() } if (m_content_index != m_content_offsets.size() || m_group_index != m_groups.size() || - (volume_size_roughly_known && m_biggest_referenced_offset > volume_size)) + (!m_is_datel && volume_size_roughly_known && m_biggest_referenced_offset > volume_size)) { const bool second_layer_missing = is_disc && volume_size_roughly_known && volume_size >= SL_DVD_SIZE && volume_size <= SL_DVD_R_SIZE; From 41adf3cd538410f089db71e1e3916b1dba3d78fd Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 12 Mar 2022 22:27:58 +0100 Subject: [PATCH 2/2] DiscIO: Treat game ID DTLX01 as a Datel disc Needed for the disc mentioned in the previous commit. --- Source/Core/DiscIO/VolumeGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index beeaa15677..6c7c8d8a9a 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -136,7 +136,7 @@ Platform VolumeGC::GetVolumeType() const bool VolumeGC::IsDatelDisc() const { - return !GetBootDOLOffset(*this, PARTITION_NONE).has_value(); + return GetGameID() == "DTLX01" || !GetBootDOLOffset(*this, PARTITION_NONE).has_value(); } std::array VolumeGC::GetSyncHash() const