summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-10-30 10:12:01 +0100
committerJosJuice <josjuice@gmail.com>2019-10-30 10:23:33 +0100
commitf9705fd1176432755df3dba0ef5c50f505193371 (patch)
treed4f40f5063247bea579796368737ba406247f407 /Source/Core
parent42ec8614697978346233f6292d6c0baaceff4e14 (diff)
Return nothing from VolumeWii::GetGameTDBID if Datel
RedumpVerifier relies on this.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp8
-rw-r--r--Source/Core/DiscIO/VolumeWii.cpp4
2 files changed, 7 insertions, 5 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp
index 8e4a33d099..9ecb8bb266 100644
--- a/Source/Core/DiscIO/VolumeGC.cpp
+++ b/Source/Core/DiscIO/VolumeGC.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
diff --git a/Source/Core/DiscIO/VolumeWii.cpp b/Source/Core/DiscIO/VolumeWii.cpp
index 5b6524f807..bc39a7aae4 100644
--- a/Source/Core/DiscIO/VolumeWii.cpp
+++ b/Source/Core/DiscIO/VolumeWii.cpp
@@ -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);
}