diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-19 19:21:59 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-19 19:21:59 -0500 |
| commit | ccebac8bcc760e885c642327581dee1f0ed29f49 (patch) | |
| tree | afd628774a6947c5f1016e88894b950c4218d8ba /Source/Core/DiscIO | |
| parent | 567e52b3de821f8d9347b2ed889e77474eb58e16 (diff) | |
| parent | 64f6d912b6ac6ef531969ef0497e481765a22474 (diff) | |
Merge pull request #1456 from Stevoisiak/AddCountries
Additional Country Filters
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/Volume.h | 17 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeCommon.cpp | 23 |
2 files changed, 22 insertions, 18 deletions
diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h index 0b10bf2387..c15be880ea 100644 --- a/Source/Core/DiscIO/Volume.h +++ b/Source/Core/DiscIO/Volume.h @@ -34,20 +34,23 @@ public: virtual bool CheckIntegrity() const { return false; } virtual bool IsDiscTwo() const { return false; } + // Increment CACHE_REVISION if values are changed (ISOFile.cpp) enum ECountry { COUNTRY_EUROPE = 0, - COUNTRY_FRANCE, - COUNTRY_RUSSIA, - COUNTRY_USA, COUNTRY_JAPAN, - COUNTRY_KOREA, + COUNTRY_USA, + COUNTRY_AUSTRALIA, + COUNTRY_FRANCE, + COUNTRY_GERMANY, + COUNTRY_INTERNATIONAL, COUNTRY_ITALY, + COUNTRY_KOREA, + COUNTRY_NETHERLANDS, + COUNTRY_RUSSIA, + COUNTRY_SPAIN, COUNTRY_TAIWAN, - COUNTRY_SDK, COUNTRY_UNKNOWN, - COUNTRY_GERMANY, - COUNTRY_AUSTRALIA, NUMBER_OF_COUNTRIES }; diff --git a/Source/Core/DiscIO/VolumeCommon.cpp b/Source/Core/DiscIO/VolumeCommon.cpp index 7da110403a..0956f119c9 100644 --- a/Source/Core/DiscIO/VolumeCommon.cpp +++ b/Source/Core/DiscIO/VolumeCommon.cpp @@ -15,24 +15,22 @@ IVolume::ECountry CountrySwitch(u8 CountryCode) { switch (CountryCode) { - // Region free - fall through to European defaults for now + // Region free - Uses European flag as placeholder case 'A': - + return IVolume::COUNTRY_INTERNATIONAL; // PAL - case 'D': // German + case 'D': return IVolume::COUNTRY_GERMANY; case 'X': // Used by a couple PAL games - case 'Y': // German, french - + case 'Y': // German, French case 'L': // Japanese import to PAL regions case 'M': // Japanese import to PAL regions - case 'S': // Spanish-speaking regions case 'P': return IVolume::COUNTRY_EUROPE; - case 'U': // Australia + case 'U': return IVolume::COUNTRY_AUSTRALIA; case 'F': @@ -41,9 +39,15 @@ IVolume::ECountry CountrySwitch(u8 CountryCode) case 'I': return IVolume::COUNTRY_ITALY; + case 'H': + return IVolume::COUNTRY_NETHERLANDS; + case 'R': return IVolume::COUNTRY_RUSSIA; + case 'S': + return IVolume::COUNTRY_SPAIN; + // NTSC case 'E': case 'N': // Japanese import to USA and other NTSC regions @@ -54,13 +58,10 @@ IVolume::ECountry CountrySwitch(u8 CountryCode) return IVolume::COUNTRY_JAPAN; case 'K': - case 'T': // Korea with English language case 'Q': // Korea with Japanese language + case 'T': // Korea with English language return IVolume::COUNTRY_KOREA; - case 'O': - return IVolume::COUNTRY_SDK; - case 'W': return IVolume::COUNTRY_TAIWAN; |
