Android: Fix country constants in CoverHelper.getRegion

This code seems to have been written as if GameFile.getCountry
returns a language rather than a country, which is wrong.
This commit is contained in:
JosJuice 2021-12-28 17:16:49 +01:00
parent ddb3bad9c9
commit 014cc02b96
1 changed files with 14 additions and 8 deletions

View File

@ -33,22 +33,28 @@ public final class CoverHelper
case 2: // PAL case 2: // PAL
switch (game.getCountry()) switch (game.getCountry())
{ {
case 2: // German case 3: // Australia
region = "DE"; region = "AU";
break; break;
case 3: // French case 4: // France
region = "FR"; region = "FR";
break; break;
case 4: // Spanish case 5: // Germany
region = "ES"; region = "DE";
break; break;
case 5: // Italian case 6: // Italy
region = "IT"; region = "IT";
break; break;
case 6: // Dutch case 8: // Netherlands
region = "NL"; region = "NL";
break; break;
case 1: // English case 9: // Russia
region = "RU";
break;
case 10: // Spain
region = "ES";
break;
case 0: // Europe
default: default:
region = "EN"; region = "EN";
break; break;