diff options
| author | Tilka <tilkax@gmail.com> | 2020-07-04 14:07:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-04 14:07:46 +0100 |
| commit | c5a38826172d3d37a29f7a275c0007400c2fde07 (patch) | |
| tree | 1f6ea8e52094c981d31e62688e206f8f6d8239d9 /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | 9c12a843f86d39bc64d9e9b5b670e67455487739 (diff) | |
| parent | fb922781e7c06c3d5e7617c0b6bc4244662cfda0 (diff) | |
Merge pull request #8929 from JosJuice/datel-covers
DiscIO: Fix downloading covers for non-GNHE5d Datel discs
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 6a620131fb..9a8617c166 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -56,11 +56,12 @@ RedumpVerifier::DownloadState RedumpVerifier::m_wii_download_state; void RedumpVerifier::Start(const Volume& volume) { - // We use GetGameTDBID instead of GetGameID so that Datel discs will be represented by an empty - // string, which matches Redump not having any serials for Datel discs. - m_game_id = volume.GetGameTDBID(); - if (m_game_id.size() > 4) - m_game_id = m_game_id.substr(0, 4); + if (!volume.IsDatelDisc()) + { + m_game_id = volume.GetGameID(); + if (m_game_id.size() > 4) + m_game_id = m_game_id.substr(0, 4); + } m_revision = volume.GetRevision().value_or(0); m_disc_number = volume.GetDiscNumber().value_or(0); |
