forked from dolphin-emu/dolphin
		
	Also removing some prefixes that we don't need now that we're using enum classes instead of plain enums.
		
			
				
	
	
		
			90 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright 2016 Dolphin Emulator Project
 | 
						|
// Licensed under GPLv2+
 | 
						|
// Refer to the license.txt file included.
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
#include "Common/CommonTypes.h"
 | 
						|
 | 
						|
namespace DiscIO
 | 
						|
{
 | 
						|
// Increment CACHE_REVISION (GameFileCache.cpp) if these enums are modified
 | 
						|
 | 
						|
enum class Platform
 | 
						|
{
 | 
						|
  GameCubeDisc = 0,
 | 
						|
  WiiDisc,
 | 
						|
  WiiWAD,
 | 
						|
  ELFOrDOL,
 | 
						|
  NumberOfPlatforms
 | 
						|
};
 | 
						|
 | 
						|
enum class Country
 | 
						|
{
 | 
						|
  Europe = 0,
 | 
						|
  Japan,
 | 
						|
  USA,
 | 
						|
  Australia,
 | 
						|
  France,
 | 
						|
  Germany,
 | 
						|
  Italy,
 | 
						|
  Korea,
 | 
						|
  Netherlands,
 | 
						|
  Russia,
 | 
						|
  Spain,
 | 
						|
  Taiwan,
 | 
						|
  World,
 | 
						|
  Unknown,
 | 
						|
  NumberOfCountries
 | 
						|
};
 | 
						|
 | 
						|
// Regions 0 - 2 and 4 match Nintendo's GameCube/Wii region numbering.
 | 
						|
enum class Region
 | 
						|
{
 | 
						|
  NTSC_J = 0,   // Japan and Taiwan (and South Korea for GameCube only)
 | 
						|
  NTSC_U = 1,   // Mainly North America
 | 
						|
  PAL = 2,      // Mainly Europe and Oceania
 | 
						|
  Unknown = 3,  // 3 seems to be unused? Anyway, we need an Unknown entry. Let's put it here
 | 
						|
  NTSC_K = 4    // South Korea (Wii only)
 | 
						|
};
 | 
						|
 | 
						|
// Languages 0 - 9 match Nintendo's Wii language numbering.
 | 
						|
// Languages 1 - 6 match Nintendo's PAL GameCube languages 0 - 5.
 | 
						|
// NTSC GameCubes only support one language and thus don't number languages.
 | 
						|
enum class Language
 | 
						|
{
 | 
						|
  Japanese = 0,
 | 
						|
  English = 1,
 | 
						|
  German = 2,
 | 
						|
  French = 3,
 | 
						|
  Spanish = 4,
 | 
						|
  Italian = 5,
 | 
						|
  Dutch = 6,
 | 
						|
  SimplifiedChinese = 7,
 | 
						|
  TraditionalChinese = 8,
 | 
						|
  Korean = 9,
 | 
						|
  Unknown
 | 
						|
};
 | 
						|
 | 
						|
std::string GetName(Country country, bool translate);
 | 
						|
std::string GetName(Language language, bool translate);
 | 
						|
 | 
						|
bool IsDisc(Platform volume_type);
 | 
						|
bool IsWii(Platform volume_type);
 | 
						|
bool IsNTSC(Region region);
 | 
						|
 | 
						|
Country TypicalCountryForRegion(Region region);
 | 
						|
// Avoid using this function if you can. Country codes aren't always reliable region indicators.
 | 
						|
Region RegionSwitchGC(u8 country_code);
 | 
						|
// Avoid using this function if you can. Country codes aren't always reliable region indicators.
 | 
						|
Region RegionSwitchWii(u8 country_code);
 | 
						|
Country CountrySwitch(u8 country_code);
 | 
						|
 | 
						|
Region GetSysMenuRegion(u16 title_version);
 | 
						|
std::string GetSysMenuVersionString(u16 title_version);
 | 
						|
 | 
						|
const std::string& GetCompanyFromID(const std::string& company_id);
 | 
						|
}
 |