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.
This commit is contained in:
JosJuice 2019-10-30 10:05:12 +01:00
parent 49977446dd
commit 42ec861469
1 changed files with 2 additions and 2 deletions

View File

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