Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10509 from JosJuice/freeloader-too-small
VolumeVerifier: Skip "lacks some data" check for Datel discs
  • Loading branch information
leoetlino committed Mar 15, 2022
2 parents a39d11c + 41adf3c commit a99c993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/VolumeGC.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/VolumeVerifier.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a99c993

Please sign in to comment.