diff options
| author | Sketch <75850871+SketchMaster2001@users.noreply.github.com> | 2024-08-01 13:58:15 -0400 |
|---|---|---|
| committer | Sketch <75850871+SketchMaster2001@users.noreply.github.com> | 2024-08-01 14:42:52 -0400 |
| commit | ebb6255441edd954af42f7cb2b3bd2e4e217e107 (patch) | |
| tree | 17f2d105d2419bddb9a14086c8baeaeee80d97ac | |
| parent | 8a50676b835bbceb7ad4921b15906a6a3a641f14 (diff) | |
Display Taiwanese covers for Taiwanese games
| -rw-r--r-- | Source/Core/Core/ConfigManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp index 8882076daa..a284cbe266 100644 --- a/Source/Core/Core/ConfigManager.cpp +++ b/Source/Core/Core/ConfigManager.cpp @@ -451,7 +451,14 @@ std::string SConfig::GetGameTDBImageRegionCode(bool wii, DiscIO::Region region) switch (region) { case DiscIO::Region::NTSC_J: + { + // Taiwanese games share the Japanese region code however their title ID ends with 'W'. + // GameTDB differentiates the covers using the code "ZH". + if (m_game_id.size() >= 4 && m_game_id.at(3) == 'W') + return "ZH"; + return "JA"; + } case DiscIO::Region::NTSC_U: return "US"; case DiscIO::Region::NTSC_K: |
