mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-04 10:14:11 +00:00
Merge pull request #11229 from Tilka/verifier
VolumeVerifier: fix bogus "serial/version missing" error
This commit is contained in:
commit
a1e41f305e
@ -238,14 +238,15 @@ std::vector<RedumpVerifier::PotentialMatch> RedumpVerifier::ScanDatfile(const st
|
|||||||
|
|
||||||
const int version = version_string.empty() ? 0 : std::stoi(version_string);
|
const int version = version_string.empty() ? 0 : std::stoi(version_string);
|
||||||
|
|
||||||
|
const std::string serials = game.child("serial").text().as_string();
|
||||||
|
if (!serials.empty())
|
||||||
|
serials_exist = true;
|
||||||
|
|
||||||
// The revisions for Korean GameCube games whose four-char game IDs end in E are numbered from
|
// The revisions for Korean GameCube games whose four-char game IDs end in E are numbered from
|
||||||
// 0x30 in ring codes and in disc headers, but Redump switched to numbering them from 0 in 2019.
|
// 0x30 in ring codes and in disc headers, but Redump switched to numbering them from 0 in 2019.
|
||||||
if (version % 0x30 != m_revision % 0x30)
|
if (version % 0x30 != m_revision % 0x30)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const std::string serials = game.child("serial").text().as_string();
|
|
||||||
if (!serials.empty())
|
|
||||||
serials_exist = true;
|
|
||||||
if (serials.empty() || StringBeginsWith(serials, "DS"))
|
if (serials.empty() || StringBeginsWith(serials, "DS"))
|
||||||
{
|
{
|
||||||
// GC Datel discs have no serials in Redump, Wii Datel discs have serials like "DS000101"
|
// GC Datel discs have no serials in Redump, Wii Datel discs have serials like "DS000101"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user