mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Merge pull request #12967 from noahpistilli/taiwan-discord-rpc
Display Taiwanese covers for Taiwanese games
This commit is contained in:
commit
7645cbff9a
@ -451,7 +451,14 @@ std::string SConfig::GetGameTDBImageRegionCode(bool wii, DiscIO::Region region)
|
|||||||
switch (region)
|
switch (region)
|
||||||
{
|
{
|
||||||
case DiscIO::Region::NTSC_J:
|
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";
|
return "JA";
|
||||||
|
}
|
||||||
case DiscIO::Region::NTSC_U:
|
case DiscIO::Region::NTSC_U:
|
||||||
return "US";
|
return "US";
|
||||||
case DiscIO::Region::NTSC_K:
|
case DiscIO::Region::NTSC_K:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user