summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeGC.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2019-02-26 04:25:45 +0000
committerGitHub <noreply@github.com>2019-02-26 04:25:45 +0000
commit19f4772e4772a199ec58e03df23e6e0e8bf003b9 (patch)
treed7f103ae74f68a0d2377ebbf1f2aa1b18594d91e /Source/Core/DiscIO/VolumeGC.cpp
parent02f5a7505fe8bb9c657cd5cb2b72c82e5b018da8 (diff)
parent71e6243c54c7a66f8216533fecfbf0fa69cabaca (diff)
Merge pull request #7816 from JosJuice/titledatabase-edge-cases
Fix edge cases in TitleDatabase, cover downloading, Gecko code downloading
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp
index 1275fcfb78..e3db29c1f5 100644
--- a/Source/Core/DiscIO/VolumeGC.cpp
+++ b/Source/Core/DiscIO/VolumeGC.cpp
@@ -72,6 +72,17 @@ std::string VolumeGC::GetGameID(const Partition& partition) const
return DecodeString(id);
}
+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())
+ return "";
+
+ return game_id;
+}
+
Region VolumeGC::GetRegion() const
{
const std::optional<u32> region_code = ReadSwapped<u32>(0x458, PARTITION_NONE);