diff options
| author | JosJuice <josjuice@gmail.com> | 2020-07-04 14:51:13 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-07-04 14:51:13 +0200 |
| commit | f24566bf39211671cd05fd8b88532b75d8b38e83 (patch) | |
| tree | 9c5e650dc20108ccbe84476fa7bcacef57b509a2 /Source/Core/DiscIO/VolumeGC.cpp | |
| parent | f9aaf8b9715470f0fd9182164fc6bd3c0443453b (diff) | |
DiscIO: Add Volume::IsDatelDisc
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index cb8c26f73e..15d71c74ca 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -62,10 +62,7 @@ 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; + return game_id == "GNHE5d" && IsDatelDisc() ? "" : game_id; } Region VolumeGC::GetRegion() const @@ -135,6 +132,11 @@ Platform VolumeGC::GetVolumeType() const return Platform::GameCubeDisc; } +bool VolumeGC::IsDatelDisc() const +{ + return !GetBootDOLOffset(*this, PARTITION_NONE).has_value(); +} + VolumeGC::ConvertedGCBanner VolumeGC::LoadBannerFile() const { GCBanner banner_file; |
