diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-03-26 03:38:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-26 03:38:57 +0100 |
| commit | 57d8f2112c887d7229a3efb94f3e254c47ce3b28 (patch) | |
| tree | e038d10fdd2d826025ed159891c3d42390fe4036 /Source/Core/DiscIO/VolumeGC.cpp | |
| parent | e53c879337dc60e49779813df94062c06ee0c6f6 (diff) | |
| parent | 479489c9992c014eca5c81e3d7025847f8f37632 (diff) | |
Merge pull request #10514 from JosJuice/datel-no-gametdb
DiscIO: Don't return GameTDB ID for any Datel disc
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index 6c7c8d8a9a..946364b4f7 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -61,10 +61,21 @@ const FileSystem* VolumeGC::GetFileSystem(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 - return game_id == "GNHE5d" && IsDatelDisc() ? "" : game_id; + // Datel discs for the GameCube can have one of two different game IDs: + // + // 1: GNHE5d. (Yes, with a lowercase d.) This game ID is used not only for + // all kinds of Datel discs, but also for the licensed release NHL Hitz 2002. + // + // 2: DTLX01. This game ID is used for a few late Datel releases. Both Action Replay + // and FreeLoader are known to have been released under this game ID. + // + // Since no game ID used for Datel discs uniquely represents one product, + // never use the game ID of a Datel disc for looking up the title or cover art. + if (IsDatelDisc()) + return ""; + + // Normal case. Just return the usual game ID. + return GetGameID(partition); } Region VolumeGC::GetRegion() const |
