Merge pull request #10509 from JosJuice/freeloader-too-small
VolumeVerifier: Skip "lacks some data" check for Datel discs
This commit is contained in:
commit
a99c993f1d
|
@ -136,7 +136,7 @@ Platform VolumeGC::GetVolumeType() const
|
||||||
|
|
||||||
bool VolumeGC::IsDatelDisc() const
|
bool VolumeGC::IsDatelDisc() const
|
||||||
{
|
{
|
||||||
return !GetBootDOLOffset(*this, PARTITION_NONE).has_value();
|
return GetGameID() == "DTLX01" || !GetBootDOLOffset(*this, PARTITION_NONE).has_value();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::array<u8, 20> VolumeGC::GetSyncHash() const
|
std::array<u8, 20> VolumeGC::GetSyncHash() const
|
||||||
|
|
|
@ -767,7 +767,7 @@ void VolumeVerifier::CheckVolumeSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_content_index != m_content_offsets.size() || m_group_index != m_groups.size() ||
|
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 &&
|
const bool second_layer_missing = is_disc && volume_size_roughly_known &&
|
||||||
volume_size >= SL_DVD_SIZE && volume_size <= SL_DVD_R_SIZE;
|
volume_size >= SL_DVD_SIZE && volume_size <= SL_DVD_R_SIZE;
|
||||||
|
|
Loading…
Reference in New Issue