Merge pull request #10509 from JosJuice/freeloader-too-small

VolumeVerifier: Skip "lacks some data" check for Datel discs
This commit is contained in:
Léo Lam 2022-03-15 15:47:55 +01:00 committed by GitHub
commit a99c993f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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<u8, 20> VolumeGC::GetSyncHash() const

View File

@ -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;