Skip to content
Permalink
Browse files

RedumpVerifier: Fix handling of Datel Wii disc serials

GC Datel discs have empty serials, but Wii Datel discs have
serials starting with DS followed by some digits.
  • Loading branch information...
JosJuice committed Oct 30, 2019
1 parent 4997744 commit 42ec8614697978346233f6292d6c0baaceff4e14
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/DiscIO/VolumeVerifier.cpp
@@ -241,9 +241,9 @@ std::vector<RedumpVerifier::PotentialMatch> RedumpVerifier::ScanDatfile(const st
continue;

const std::string serials = game.child("serial").text().as_string();
if (serials.empty())
if (serials.empty() || StringBeginsWith(serials, "DS"))
{
// This case is reached for Datel discs
// GC Datel discs have no serials in Redump, Wii Datel discs have serials like "DS000101"
if (!m_game_id.empty())
continue; // Non-empty m_game_id means we're verifying a non-Datel disc
}

0 comments on commit 42ec861

Please sign in to comment.
You can’t perform that action at this time.