2009-07-28 15:32:10 -06:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2009-07-03 16:51:21 -06:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
#include "Volume.h"
|
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
IVolume::ECountry CountrySwitch(u8 CountryCode)
|
|
|
|
{
|
|
|
|
switch (CountryCode)
|
|
|
|
{
|
2010-05-30 11:16:06 -06:00
|
|
|
// Region free - fall through to European defaults for now
|
2010-05-30 10:33:01 -06:00
|
|
|
case 'A':
|
2010-05-30 11:16:06 -06:00
|
|
|
|
2010-05-30 11:31:52 -06:00
|
|
|
case 'X': // Not a real region code. Used by DVDX 1.0 and
|
|
|
|
// The Homebrew Channel versions 1.0.4 and earlier.
|
|
|
|
|
2010-05-30 11:16:06 -06:00
|
|
|
// PAL
|
2009-07-03 16:51:21 -06:00
|
|
|
case 'D':
|
2010-05-30 11:16:06 -06:00
|
|
|
case 'L': // Japanese import to PAL regions
|
|
|
|
case 'M': // Japanese import to PAL regions
|
|
|
|
case 'S': // Spanish-speaking regions
|
2009-07-03 16:51:21 -06:00
|
|
|
case 'P':
|
|
|
|
return IVolume::COUNTRY_EUROPE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'F':
|
|
|
|
return IVolume::COUNTRY_FRANCE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'I':
|
|
|
|
return IVolume::COUNTRY_ITALY;
|
|
|
|
break;
|
2010-10-03 00:10:14 -06:00
|
|
|
|
|
|
|
case 'R':
|
|
|
|
return IVolume::COUNTRY_RUSSIA;
|
|
|
|
break;
|
2009-07-03 16:51:21 -06:00
|
|
|
|
|
|
|
// NTSC
|
|
|
|
case 'E':
|
2010-05-30 11:31:52 -06:00
|
|
|
case 'N': // Japanese import to USA and other NTSC regions
|
2010-05-23 02:41:58 -06:00
|
|
|
case 'Z': // Prince Of Persia - The Forgotten Sands (WII)
|
2009-07-03 16:51:21 -06:00
|
|
|
return IVolume::COUNTRY_USA;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'J':
|
|
|
|
return IVolume::COUNTRY_JAPAN;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'K':
|
2010-05-30 11:16:06 -06:00
|
|
|
case 'T': // Korea with English language
|
|
|
|
case 'Q': // Korea with Japanese language
|
2009-07-03 16:51:21 -06:00
|
|
|
return IVolume::COUNTRY_KOREA;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'O':
|
|
|
|
return IVolume::COUNTRY_SDK;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'W':
|
|
|
|
return IVolume::COUNTRY_TAIWAN;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2010-09-05 22:36:58 -06:00
|
|
|
if (CountryCode > 'A') // Silently ignore IOS wads
|
|
|
|
WARN_LOG(DISCIO, "Unknown Country Code! %c", CountryCode);
|
2009-07-03 16:51:21 -06:00
|
|
|
return IVolume::COUNTRY_UNKNOWN;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|