Skip to content
Permalink
Browse files

Return nothing from VolumeWii::GetGameTDBID if Datel

RedumpVerifier relies on this.
  • Loading branch information...
JosJuice committed Oct 30, 2019
1 parent 42ec861 commit f9705fd1176432755df3dba0ef5c50f505193371
Showing with 7 additions and 5 deletions.
  1. +3 −5 Source/Core/DiscIO/VolumeGC.cpp
  2. +4 −0 Source/Core/DiscIO/VolumeWii.cpp
@@ -74,13 +74,11 @@ std::string VolumeGC::GetGameID(const Partition& partition) const

std::string VolumeGC::GetGameTDBID(const Partition& partition) const
{
const std::string game_id = GetGameID(partition);

// Don't return an ID for Datel discs that are using the game ID of NHL Hitz 2002
if (game_id == "GNHE5d" && !GetBootDOLOffset(*this, partition).has_value())
// Don't return an ID for Datel discs
if (!GetBootDOLOffset(*this, PARTITION_NONE).has_value())
return "";

return game_id;
return GetGameID(partition);
}

Region VolumeGC::GetRegion() const
@@ -313,6 +313,10 @@ std::string VolumeWii::GetGameID(const Partition& partition) const

std::string VolumeWii::GetGameTDBID(const Partition& partition) const
{
// Don't return an ID for Datel discs
if (m_game_partition == PARTITION_NONE)
return "";

return GetGameID(partition);
}

0 comments on commit f9705fd

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