From ebb6255441edd954af42f7cb2b3bd2e4e217e107 Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:58:15 -0400 Subject: [PATCH] Display Taiwanese covers for Taiwanese games --- Source/Core/Core/ConfigManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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: