2016-07-06 18:33:05 +00:00
|
|
|
// Copyright 2016 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2009-07-03 22:51:21 +00:00
|
|
|
|
2021-12-10 02:22:16 +00:00
|
|
|
#include "DiscIO/Enums.h"
|
|
|
|
|
2015-04-09 15:44:53 +00:00
|
|
|
#include <map>
|
2014-02-21 00:47:53 +00:00
|
|
|
#include <string>
|
|
|
|
|
2017-12-31 19:33:36 +00:00
|
|
|
#include "Common/Assert.h"
|
|
|
|
#include "Common/Common.h"
|
2014-09-08 01:06:58 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-09-19 04:17:41 +00:00
|
|
|
#include "Common/Logging/Log.h"
|
2017-12-31 19:33:36 +00:00
|
|
|
#include "Common/MsgHandler.h"
|
2009-07-03 22:51:21 +00:00
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
2017-12-31 19:33:36 +00:00
|
|
|
std::string GetName(Country country, bool translate)
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
|
|
|
|
switch (country)
|
|
|
|
{
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Europe:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Europe");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Japan:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Japan");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::USA:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("USA");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Australia:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Australia");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::France:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("France");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Germany:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Germany");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Italy:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Italy");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Korea:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Korea");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Netherlands:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Netherlands");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Russia:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Russia");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Spain:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Spain");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::Taiwan:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Taiwan");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Country::World:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("World");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
name = _trans("Unknown");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2019-06-17 03:45:37 +00:00
|
|
|
return translate ? Common::GetStringT(name.c_str()) : name;
|
2017-12-31 19:33:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string GetName(Language language, bool translate)
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
|
|
|
|
switch (language)
|
|
|
|
{
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::Japanese:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Japanese");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::English:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("English");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::German:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("German");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::French:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("French");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::Spanish:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Spanish");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::Italian:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Italian");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::Dutch:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Dutch");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::SimplifiedChinese:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Simplified Chinese");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::TraditionalChinese:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Traditional Chinese");
|
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Language::Korean:
|
2017-12-31 19:33:36 +00:00
|
|
|
name = _trans("Korean");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
name = _trans("Unknown");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2019-06-17 03:45:37 +00:00
|
|
|
return translate ? Common::GetStringT(name.c_str()) : name;
|
2017-12-31 19:33:36 +00:00
|
|
|
}
|
|
|
|
|
2023-10-11 08:58:42 +00:00
|
|
|
std::string GetName(Region region, bool translate)
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
|
|
|
|
switch (region)
|
|
|
|
{
|
|
|
|
case DiscIO::Region::NTSC_J:
|
|
|
|
name = _trans("NTSC-J");
|
|
|
|
break;
|
|
|
|
case DiscIO::Region::NTSC_U:
|
|
|
|
name = _trans("NTSC-U");
|
|
|
|
break;
|
|
|
|
case DiscIO::Region::PAL:
|
|
|
|
name = _trans("PAL");
|
|
|
|
break;
|
|
|
|
case DiscIO::Region::NTSC_K:
|
|
|
|
name = _trans("NTSC-K");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
name = _trans("Unknown");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return translate ? Common::GetStringT(name.c_str()) : name;
|
|
|
|
}
|
|
|
|
|
2017-06-17 10:26:32 +00:00
|
|
|
bool IsDisc(Platform volume_type)
|
|
|
|
{
|
2018-03-31 12:04:13 +00:00
|
|
|
return volume_type == Platform::GameCubeDisc || volume_type == Platform::WiiDisc;
|
2017-06-17 10:26:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool IsWii(Platform volume_type)
|
|
|
|
{
|
2018-03-31 12:04:13 +00:00
|
|
|
return volume_type == Platform::WiiDisc || volume_type == Platform::WiiWAD;
|
2017-06-17 10:26:32 +00:00
|
|
|
}
|
|
|
|
|
2016-12-23 20:53:36 +00:00
|
|
|
bool IsNTSC(Region region)
|
|
|
|
{
|
|
|
|
return region == Region::NTSC_J || region == Region::NTSC_U || region == Region::NTSC_K;
|
|
|
|
}
|
|
|
|
|
2020-12-29 17:10:16 +00:00
|
|
|
int ToGameCubeLanguage(Language language)
|
|
|
|
{
|
|
|
|
if (language < Language::English || language > Language::Dutch)
|
|
|
|
return 0;
|
|
|
|
else
|
|
|
|
return static_cast<int>(language) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
Language FromGameCubeLanguage(int language)
|
|
|
|
{
|
|
|
|
if (language < 0 || language > 5)
|
|
|
|
return Language::Unknown;
|
|
|
|
else
|
|
|
|
return static_cast<Language>(language + 1);
|
|
|
|
}
|
|
|
|
|
2017-12-31 19:33:36 +00:00
|
|
|
// Increment CACHE_REVISION (GameFileCache.cpp) if the code below is modified
|
2015-04-10 20:10:49 +00:00
|
|
|
|
2017-03-17 20:16:59 +00:00
|
|
|
Country TypicalCountryForRegion(Region region)
|
|
|
|
{
|
|
|
|
switch (region)
|
|
|
|
{
|
|
|
|
case Region::NTSC_J:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Japan;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::NTSC_U:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::USA;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::PAL:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Europe;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::NTSC_K:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Korea;
|
2017-03-17 20:16:59 +00:00
|
|
|
default:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Unknown;
|
2017-03-17 20:16:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-30 10:44:38 +00:00
|
|
|
Region SysConfCountryToRegion(u8 country_code)
|
|
|
|
{
|
|
|
|
if (country_code == 0)
|
|
|
|
return Region::Unknown;
|
|
|
|
|
|
|
|
if (country_code < 0x08) // Japan
|
|
|
|
return Region::NTSC_J;
|
|
|
|
|
|
|
|
if (country_code < 0x40) // Americas
|
|
|
|
return Region::NTSC_U;
|
|
|
|
|
|
|
|
if (country_code < 0x80) // Europe, Oceania, parts of Africa
|
|
|
|
return Region::PAL;
|
|
|
|
|
|
|
|
if (country_code < 0xa8) // Southeast Asia
|
|
|
|
return country_code == 0x88 ? Region::NTSC_K : Region::NTSC_J;
|
|
|
|
|
|
|
|
if (country_code < 0xc0) // Middle East
|
|
|
|
return Region::NTSC_U;
|
|
|
|
|
|
|
|
return Region::Unknown;
|
|
|
|
}
|
|
|
|
|
2019-03-22 19:47:05 +00:00
|
|
|
Region CountryCodeToRegion(u8 country_code, Platform platform, Region expected_region,
|
|
|
|
std::optional<u16> revision)
|
2016-12-23 17:41:21 +00:00
|
|
|
{
|
|
|
|
switch (country_code)
|
|
|
|
{
|
2019-07-15 10:16:10 +00:00
|
|
|
case '\2':
|
|
|
|
return expected_region; // Wii Menu (same title ID for all regions)
|
|
|
|
|
2016-12-23 17:41:21 +00:00
|
|
|
case 'J':
|
|
|
|
return Region::NTSC_J;
|
|
|
|
|
2018-10-08 11:46:55 +00:00
|
|
|
case 'W':
|
2018-10-08 11:48:36 +00:00
|
|
|
if (expected_region == Region::PAL)
|
|
|
|
return Region::PAL; // Only the Nordic version of Ratatouille (Wii)
|
|
|
|
else
|
|
|
|
return Region::NTSC_J; // Korean GC games in English or Taiwanese Wii games
|
2018-10-08 11:46:55 +00:00
|
|
|
|
2016-12-23 17:41:21 +00:00
|
|
|
case 'E':
|
2019-03-22 19:47:05 +00:00
|
|
|
if (platform != Platform::GameCubeDisc)
|
2018-10-08 11:48:36 +00:00
|
|
|
return Region::NTSC_U; // The most common country code for NTSC-U
|
2018-10-05 18:14:23 +00:00
|
|
|
|
2019-03-22 19:47:05 +00:00
|
|
|
if (revision)
|
|
|
|
{
|
|
|
|
if (*revision >= 0x30)
|
|
|
|
return Region::NTSC_J; // Korean GC games in English
|
|
|
|
else
|
|
|
|
return Region::NTSC_U; // The most common country code for NTSC-U
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (expected_region == Region::NTSC_J)
|
|
|
|
return Region::NTSC_J; // Korean GC games in English
|
|
|
|
else
|
|
|
|
return Region::NTSC_U; // The most common country code for NTSC-U
|
|
|
|
}
|
|
|
|
|
2018-10-05 18:14:23 +00:00
|
|
|
case 'B':
|
2016-12-23 17:41:21 +00:00
|
|
|
case 'N':
|
|
|
|
return Region::NTSC_U;
|
|
|
|
|
2018-10-08 11:46:55 +00:00
|
|
|
case 'X':
|
|
|
|
case 'Y':
|
|
|
|
case 'Z':
|
2018-10-08 11:48:36 +00:00
|
|
|
// Additional language versions, store-exclusive versions, other special versions
|
2018-10-08 11:46:55 +00:00
|
|
|
return expected_region == Region::NTSC_U ? Region::NTSC_U : Region::PAL;
|
|
|
|
|
2016-12-23 17:41:21 +00:00
|
|
|
case 'D':
|
|
|
|
case 'F':
|
|
|
|
case 'H':
|
|
|
|
case 'I':
|
|
|
|
case 'L':
|
|
|
|
case 'M':
|
|
|
|
case 'P':
|
|
|
|
case 'R':
|
|
|
|
case 'S':
|
|
|
|
case 'U':
|
2018-10-08 11:36:06 +00:00
|
|
|
case 'V':
|
2016-12-23 17:41:21 +00:00
|
|
|
return Region::PAL;
|
|
|
|
|
|
|
|
case 'K':
|
|
|
|
case 'Q':
|
|
|
|
case 'T':
|
2018-10-08 11:48:36 +00:00
|
|
|
// All of these country codes are Korean, but the NTSC-K region doesn't exist on GC
|
2018-10-05 15:48:59 +00:00
|
|
|
return platform == Platform::GameCubeDisc ? Region::NTSC_J : Region::NTSC_K;
|
2016-12-23 17:41:21 +00:00
|
|
|
|
|
|
|
default:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Region::Unknown;
|
2016-12-23 17:41:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-22 19:47:05 +00:00
|
|
|
Country CountryCodeToCountry(u8 country_code, Platform platform, Region region,
|
|
|
|
std::optional<u16> revision)
|
2009-07-03 22:51:21 +00:00
|
|
|
{
|
2015-02-24 01:43:29 +00:00
|
|
|
switch (country_code)
|
2009-07-03 22:51:21 +00:00
|
|
|
{
|
2015-12-19 10:34:01 +00:00
|
|
|
// Worldwide
|
2010-05-30 16:33:01 +00:00
|
|
|
case 'A':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::World;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2018-10-08 11:46:55 +00:00
|
|
|
// Mixed regions
|
|
|
|
case 'X':
|
|
|
|
case 'Y':
|
|
|
|
case 'Z':
|
2018-10-08 11:48:36 +00:00
|
|
|
// Additional language versions, store-exclusive versions, other special versions
|
2018-10-08 11:46:55 +00:00
|
|
|
return region == Region::NTSC_U ? Country::USA : Country::Europe;
|
|
|
|
|
|
|
|
case 'W':
|
2019-03-22 19:47:05 +00:00
|
|
|
if (platform == Platform::GameCubeDisc)
|
2018-10-08 11:48:36 +00:00
|
|
|
return Country::Korea; // GC games in English released in Korea
|
2019-03-22 19:47:05 +00:00
|
|
|
else if (region == Region::PAL)
|
|
|
|
return Country::Europe; // Only the Nordic version of Ratatouille (Wii)
|
2018-10-08 11:46:55 +00:00
|
|
|
else
|
2018-10-08 11:48:36 +00:00
|
|
|
return Country::Taiwan; // Wii games in traditional Chinese released in Taiwan
|
2018-10-08 11:46:55 +00:00
|
|
|
|
2010-05-30 17:16:06 +00:00
|
|
|
// PAL
|
2014-10-30 14:35:46 +00:00
|
|
|
case 'D':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Germany;
|
2013-01-10 04:53:04 +00:00
|
|
|
|
2018-10-08 11:48:36 +00:00
|
|
|
case 'L': // NTSC-J games released on PAL VC
|
|
|
|
case 'M': // NTSC-U games released on PAL VC
|
2018-10-08 11:48:36 +00:00
|
|
|
case 'V': // Used by some Nordic Wii releases
|
|
|
|
case 'P': // The most common country code for PAL
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Europe;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2014-10-30 14:35:46 +00:00
|
|
|
case 'U':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Australia;
|
2014-10-26 21:47:07 +00:00
|
|
|
|
2009-07-03 22:51:21 +00:00
|
|
|
case 'F':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::France;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2009-07-03 22:51:21 +00:00
|
|
|
case 'I':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Italy;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2014-10-30 14:35:46 +00:00
|
|
|
case 'H':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Netherlands;
|
2014-10-30 14:35:46 +00:00
|
|
|
|
2010-10-03 06:10:14 +00:00
|
|
|
case 'R':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Russia;
|
2009-07-03 22:51:21 +00:00
|
|
|
|
2014-10-30 14:35:46 +00:00
|
|
|
case 'S':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Spain;
|
2014-10-30 14:35:46 +00:00
|
|
|
|
2009-07-03 22:51:21 +00:00
|
|
|
// NTSC
|
|
|
|
case 'E':
|
2019-03-22 19:47:05 +00:00
|
|
|
if (platform != Platform::GameCubeDisc)
|
2018-10-08 11:48:36 +00:00
|
|
|
return Country::USA; // The most common country code for NTSC-U
|
2018-10-05 18:14:23 +00:00
|
|
|
|
2019-03-22 19:47:05 +00:00
|
|
|
if (revision)
|
|
|
|
{
|
|
|
|
if (*revision >= 0x30)
|
|
|
|
return Country::Korea; // GC games in English released in Korea
|
|
|
|
else
|
|
|
|
return Country::USA; // The most common country code for NTSC-U
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (region == Region::NTSC_J)
|
|
|
|
return Country::Korea; // GC games in English released in Korea
|
|
|
|
else
|
|
|
|
return Country::USA; // The most common country code for NTSC-U
|
|
|
|
}
|
|
|
|
|
2018-10-08 11:48:36 +00:00
|
|
|
case 'B': // PAL games released on NTSC-U VC
|
|
|
|
case 'N': // NTSC-J games released on NTSC-U VC
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::USA;
|
2009-07-03 22:51:21 +00:00
|
|
|
|
|
|
|
case 'J':
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Japan;
|
2009-07-03 22:51:21 +00:00
|
|
|
|
2018-10-08 11:48:36 +00:00
|
|
|
case 'K': // Games in Korean released in Korea
|
2018-10-08 11:48:36 +00:00
|
|
|
case 'Q': // NTSC-J games released on NTSC-K VC
|
|
|
|
case 'T': // NTSC-U games released on NTSC-K VC
|
2018-10-19 16:45:59 +00:00
|
|
|
return Country::Korea;
|
2009-07-03 22:51:21 +00:00
|
|
|
|
|
|
|
default:
|
2015-02-24 01:43:29 +00:00
|
|
|
if (country_code > 'A') // Silently ignore IOS wads
|
2020-10-21 18:58:08 +00:00
|
|
|
WARN_LOG_FMT(DISCIO, "Unknown Country Code! {}", static_cast<char>(country_code));
|
2018-03-31 12:04:13 +00:00
|
|
|
return Country::Unknown;
|
2009-07-03 22:51:21 +00:00
|
|
|
}
|
|
|
|
}
|
2010-12-16 07:36:26 +00:00
|
|
|
|
2017-03-17 20:16:59 +00:00
|
|
|
Region GetSysMenuRegion(u16 title_version)
|
2010-12-16 07:36:26 +00:00
|
|
|
{
|
2017-03-16 09:45:57 +00:00
|
|
|
switch (title_version & 0xf)
|
2010-12-16 07:36:26 +00:00
|
|
|
{
|
2017-03-16 09:45:57 +00:00
|
|
|
case 0:
|
2017-03-17 20:16:59 +00:00
|
|
|
return Region::NTSC_J;
|
2017-03-16 09:45:57 +00:00
|
|
|
case 1:
|
2017-03-17 20:16:59 +00:00
|
|
|
return Region::NTSC_U;
|
2017-03-16 09:45:57 +00:00
|
|
|
case 2:
|
2017-03-17 20:16:59 +00:00
|
|
|
return Region::PAL;
|
2017-03-16 09:45:57 +00:00
|
|
|
case 6:
|
2017-03-17 20:16:59 +00:00
|
|
|
return Region::NTSC_K;
|
2010-12-16 07:36:26 +00:00
|
|
|
default:
|
2018-03-31 12:04:13 +00:00
|
|
|
return Region::Unknown;
|
2010-12-16 07:36:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-21 21:22:49 +00:00
|
|
|
std::string GetSysMenuVersionString(u16 title_version, bool is_vwii)
|
2017-03-17 20:01:50 +00:00
|
|
|
{
|
2019-09-12 03:44:57 +00:00
|
|
|
std::string version;
|
|
|
|
char region_letter = '\0';
|
2017-03-17 20:01:50 +00:00
|
|
|
|
|
|
|
switch (GetSysMenuRegion(title_version))
|
|
|
|
{
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::NTSC_J:
|
2019-09-12 03:44:57 +00:00
|
|
|
region_letter = 'J';
|
2017-03-17 20:01:50 +00:00
|
|
|
break;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::NTSC_U:
|
2019-09-12 03:44:57 +00:00
|
|
|
region_letter = 'U';
|
2017-03-17 20:01:50 +00:00
|
|
|
break;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::PAL:
|
2019-09-12 03:44:57 +00:00
|
|
|
region_letter = 'E';
|
2017-03-17 20:01:50 +00:00
|
|
|
break;
|
2017-03-17 20:16:59 +00:00
|
|
|
case Region::NTSC_K:
|
2019-09-12 03:44:57 +00:00
|
|
|
region_letter = 'K';
|
2017-03-17 20:01:50 +00:00
|
|
|
break;
|
2018-03-31 12:04:13 +00:00
|
|
|
case Region::Unknown:
|
2020-10-21 18:58:08 +00:00
|
|
|
WARN_LOG_FMT(DISCIO, "Unknown region for Wii Menu version {}", title_version);
|
2017-03-22 06:42:12 +00:00
|
|
|
break;
|
2017-03-17 20:01:50 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 21:22:49 +00:00
|
|
|
if (is_vwii)
|
2017-03-17 20:01:50 +00:00
|
|
|
{
|
2022-10-21 21:22:49 +00:00
|
|
|
// For vWii return the Wii U version which installed the menu
|
|
|
|
switch (title_version & 0xff0)
|
|
|
|
{
|
|
|
|
case 512:
|
|
|
|
version = "1.0.0";
|
|
|
|
break;
|
|
|
|
case 544:
|
|
|
|
version = "4.0.0";
|
|
|
|
break;
|
|
|
|
case 608:
|
|
|
|
version = "5.2.0";
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
version = "?.?.?";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
switch (title_version & 0xff0)
|
|
|
|
{
|
|
|
|
case 32:
|
|
|
|
version = "1.0";
|
|
|
|
break;
|
|
|
|
case 96:
|
|
|
|
case 128:
|
|
|
|
version = "2.0";
|
|
|
|
break;
|
|
|
|
case 160:
|
|
|
|
version = "2.1";
|
|
|
|
break;
|
|
|
|
case 192:
|
|
|
|
version = "2.2";
|
|
|
|
break;
|
|
|
|
case 224:
|
|
|
|
version = "3.0";
|
|
|
|
break;
|
|
|
|
case 256:
|
|
|
|
version = "3.1";
|
|
|
|
break;
|
|
|
|
case 288:
|
|
|
|
version = "3.2";
|
|
|
|
break;
|
|
|
|
case 320:
|
|
|
|
case 352:
|
|
|
|
version = "3.3";
|
|
|
|
break;
|
|
|
|
case 384:
|
|
|
|
version = (region_letter != 'K' ? "3.4" : "3.5");
|
|
|
|
break;
|
|
|
|
case 416:
|
|
|
|
version = "4.0";
|
|
|
|
break;
|
|
|
|
case 448:
|
|
|
|
version = "4.1";
|
|
|
|
break;
|
|
|
|
case 480:
|
|
|
|
version = "4.2";
|
|
|
|
break;
|
|
|
|
case 512:
|
|
|
|
version = "4.3";
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
version = "?.?";
|
|
|
|
break;
|
|
|
|
}
|
2017-03-17 20:01:50 +00:00
|
|
|
}
|
2019-09-12 03:44:57 +00:00
|
|
|
|
|
|
|
if (region_letter != '\0')
|
|
|
|
version += region_letter;
|
|
|
|
|
|
|
|
return version;
|
2017-03-17 20:01:50 +00:00
|
|
|
}
|
|
|
|
|
2017-12-31 19:33:36 +00:00
|
|
|
const std::string& GetCompanyFromID(const std::string& company_id)
|
2015-05-24 15:41:53 +00:00
|
|
|
{
|
|
|
|
static const std::map<std::string, std::string> companies = {
|
|
|
|
{"01", "Nintendo"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"02", "Nintendo"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"08", "Capcom"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"0A", "Jaleco / Jaleco Entertainment"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"0L", "Warashi"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"0M", "Entertainment Software Publishing"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"0Q", "IE Institute"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"13", "Electronic Arts Japan"},
|
|
|
|
{"18", "Hudson Soft / Hudson Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"1K", "Titus Software"},
|
|
|
|
{"20", "DSI Games / ZOO Digital Publishing"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"28", "Kemco Japan"},
|
|
|
|
{"29", "SETA Corporation"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"2K", "NEC Interchannel"},
|
|
|
|
{"2L", "Agatsuma Entertainment"},
|
|
|
|
{"2M", "Jorudan"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"2N", "Smilesoft / Rocket Company"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"2Q", "MediaKite"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"36", "Codemasters"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"41", "Ubisoft"},
|
|
|
|
{"4F", "Eidos Interactive"},
|
|
|
|
{"4Q", "Disney Interactive Studios / Buena Vista Games"},
|
|
|
|
{"4Z", "Crave Entertainment / Red Wagon Games"},
|
|
|
|
{"51", "Acclaim Entertainment"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"52", "Activision"},
|
|
|
|
{"54", "Take-Two Interactive / GameTek / Rockstar Games / Global Star Software"},
|
|
|
|
{"5D", "Midway Games / Tradewest"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"5G", "Majesco Entertainment"},
|
|
|
|
{"5H", "3DO / Global Star Software"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"5L", "NewKidCo"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"5S", "Evolved Games / Xicat Interactive"},
|
2017-10-05 07:58:38 +00:00
|
|
|
{"5V", "Agetec"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"5Z", "Data Design / Conspiracy Entertainment"},
|
|
|
|
{"60", "Titus Interactive / Titus Software"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"64", "LucasArts"},
|
|
|
|
{"68", "Bethesda Softworks / Mud Duck Productions / Vir2L Studios"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"69", "Electronic Arts"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"6E", "Sega"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"6K", "UFO Interactive Games"},
|
|
|
|
{"6L", "BAM! Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"6M", "System 3"},
|
|
|
|
{"6N", "Midas Interactive Entertainment"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"6S", "TDK Mediactive"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"6U", "The Adventure Company / DreamCatcher Interactive"},
|
|
|
|
{"6V", "JoWooD Entertainment"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"6W", "Sega"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"6X", "Wanadoo Edition"},
|
|
|
|
{"6Z", "NDS Software"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"70", "Atari (Infogrames)"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"71", "Interplay Entertainment"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"75", "SCi Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"78", "THQ / Play THQ"},
|
|
|
|
{"7D", "Sierra Entertainment / Vivendi Games / Universal Interactive Studios"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"7F", "Kemco"},
|
|
|
|
{"7G", "Rage Software"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"7H", "Encore Software"},
|
|
|
|
{"7J", "Zushi Games / ZOO Digital Publishing"},
|
|
|
|
{"7K", "Kiddinx Entertainment"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"7L", "Simon & Schuster Interactive"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"7M", "Badland Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"7N", "Empire Interactive / Xplosiv"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"7S", "Rockstar Games"},
|
|
|
|
{"7T", "Scholastic"},
|
|
|
|
{"7U", "Ignition Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"82", "Namco"},
|
|
|
|
{"8G", "NEC Interchannel"},
|
|
|
|
{"8J", "Kadokawa Shoten"},
|
|
|
|
{"8M", "CyberFront"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"8N", "Success"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"8P", "Sega"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"91", "Chunsoft"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"99", "Marvelous Entertainment / Victor Entertainment / Pack-In-Video / Rising Star Games"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"9B", "Tecmo"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"9G",
|
|
|
|
"Take-Two Interactive / Global Star Software / Gotham Games / Gathering of Developers"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"9S", "Brother International"},
|
|
|
|
{"9Z", "Crunchyroll"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"A4", "Konami"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"A7", "Takara"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"AF", "Namco Bandai Games"},
|
|
|
|
{"AU", "Alternative Software"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"AX", "Vivendi"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"B0", "Acclaim Japan"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"B2", "Bandai Games"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"BB", "Sunsoft"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"BL", "MTO"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"BM", "XING"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"BN", "Sunrise Interactive"},
|
|
|
|
{"BP", "Global A Entertainment"},
|
|
|
|
{"C0", "Taito"},
|
|
|
|
{"C8", "Koei"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"CM", "Konami Computer Entertainment Osaka"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"CQ", "From Software"},
|
|
|
|
{"D9", "Banpresto"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"DA", "Tomy / Takara Tomy"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"DQ", "Compile Heart / Idea Factory"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"E5", "Epoch"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"E6", "Game Arts"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"E7", "Athena"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"E8", "Asmik Ace Entertainment"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"E9", "Natsume"},
|
|
|
|
{"EB", "Atlus"},
|
|
|
|
{"EL", "Spike"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"EM", "Konami Computer Entertainment Tokyo"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"EP", "Sting Entertainment"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"ES", "Starfish-SD"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"EY", "Vblank Entertainment"},
|
|
|
|
{"FH", "Easy Interactive"},
|
|
|
|
{"FJ", "Virtual Toys"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"FK", "The Game Factory"},
|
|
|
|
{"FP", "Mastiff"},
|
|
|
|
{"FR", "Digital Tainment Pool"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"FS", "XS Games"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"G0", "Alpha Unit"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"G2", "Yuke's"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"G6", "SIMS"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"G9", "D3 Publisher"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"GA", "PIN Change"},
|
|
|
|
{"GD", "Square Enix"},
|
|
|
|
{"GE", "Kids Station"},
|
|
|
|
{"GG", "O3 Entertainment"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"GJ", "Detn8 Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"GK", "Genki"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"GL", "Gameloft / Ubisoft"},
|
|
|
|
{"GM", "Gamecock Media Group"},
|
|
|
|
{"GN", "Oxygen Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"GR", "GSP"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"GT", "505 Games"},
|
2017-10-05 07:58:38 +00:00
|
|
|
{"GX", "Commodore"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"GY", "The Game Factory"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"GZ", "Gammick Entertainment"},
|
|
|
|
{"H3", "Zen United"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"H4", "SNK Playmore"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"HA", "Nobilis"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"HE", "Gust"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"HF", "Level-5"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"HG", "Graffiti Entertainment"},
|
2017-10-05 07:58:38 +00:00
|
|
|
{"HH", "Focus Home Interactive"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"HJ", "Genius Products"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"HK", "D2C Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"HL", "Frontier Developments"},
|
|
|
|
{"HM", "HMH Interactive"},
|
|
|
|
{"HN", "High Voltage Software"},
|
|
|
|
{"HQ", "Abstraction Games"},
|
|
|
|
{"HS", "Tru Blu"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"HT", "Big Blue Bubble"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"HU", "Ghostfire Games"},
|
|
|
|
{"HW", "Incredible Technologies"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"HY", "Reef Entertainment"},
|
|
|
|
{"HZ", "Nordcurrent"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"J8", "D4 Enterprise"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"J9", "AQ Interactive"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"JD", "SKONEC Entertainment"},
|
|
|
|
{"JE", "E Frontier"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"JF", "Arc System Works"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"JG", "The Games Company"},
|
2017-10-05 07:58:38 +00:00
|
|
|
{"JH", "City Interactive"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"JJ", "Deep Silver"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"JP", "redspotgames"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"JR", "Engine Software"},
|
|
|
|
{"JS", "Digital Leisure"},
|
|
|
|
{"JT", "Empty Clip Studios"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"JU", "Riverman Media"},
|
|
|
|
{"JV", "JV Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"JW", "BigBen Interactive"},
|
|
|
|
{"JX", "Shin'en Multimedia"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"JY", "Steel Penny Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"JZ", "505 Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"K2", "Coca-Cola (Japan) Company"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"K3", "Yudo"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"K6", "Nihon System"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"KB", "Nippon Ichi Software"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"KG", "Kando Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"KH", "Joju Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"KJ", "Studio Zan"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"KK", "DK Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"KL", "Abylight"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"KM", "Deep Silver"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"KN", "Gameshastra"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"KP", "Purple Hills"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"KQ", "Over the Top Games"},
|
|
|
|
{"KR", "KREA Medie"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"KT", "The Code Monkeys"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"KW", "Semnat Studios"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"KY", "Medaverse Studios"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"L3", "G-Mode"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"L8", "FujiSoft"},
|
|
|
|
{"LB", "Tryfirst"},
|
|
|
|
{"LD", "Studio Zan"},
|
|
|
|
{"LF", "Kemco"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"LG", "Black Bean Games"},
|
|
|
|
{"LJ", "Legendo Entertainment"},
|
|
|
|
{"LL", "HB Studios"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"LN", "GameOn"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"LP", "Left Field Productions"},
|
|
|
|
{"LR", "Koch Media"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"LT", "Legacy Interactive"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"LU", "Lexis Num\xc3\xa9rique"}, // We can't use a u8 prefix due to C++20's u8string
|
|
|
|
{"LW", "Grendel Games"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"LY", "Icon Games / Super Icon"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"M0", "Studio Zan"},
|
|
|
|
{"M1", "Grand Prix Games"},
|
|
|
|
{"M2", "HomeMedia"},
|
|
|
|
{"M4", "Cybird"},
|
|
|
|
{"M6", "Perpetuum"},
|
|
|
|
{"MB", "Agenda"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"MD", "Ateam"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"ME", "Silver Star Japan"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"MF", "Yamasa"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"MH", "Mentor Interactive"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"MJ", "Mumbo Jumbo"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"ML", "DTP Young Entertainment"},
|
|
|
|
{"MM", "Big John Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"MN", "Mindscape"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"MR", "Mindscape"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"MS", "Milestone / UFO Interactive Games"},
|
|
|
|
{"MT", "Blast! Entertainment"},
|
|
|
|
{"MV", "Marvelous Entertainment"},
|
|
|
|
{"MZ", "Mad Catz"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"N0", "Exkee"},
|
|
|
|
{"N4", "Zoom"},
|
|
|
|
{"N7", "T&S"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"N9", "Tera Box"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"NA", "Tom Create"},
|
|
|
|
{"NB", "HI Games & Publishing"},
|
|
|
|
{"NE", "Kosaido"},
|
|
|
|
{"NF", "Peakvox"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"NG", "Nordic Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"NH", "Gevo Entertainment"},
|
|
|
|
{"NJ", "Enjoy Gaming"},
|
|
|
|
{"NK", "Neko Entertainment"},
|
|
|
|
{"NL", "Nordic Softsales"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"NN", "Nnooo"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"NP", "Nobilis"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"NQ", "Namco Bandai Partners"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"NR", "Destineer Publishing / Bold Games"},
|
|
|
|
{"NS", "Nippon Ichi Software America"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"NT", "Nocturnal Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"NV", "Nicalis"},
|
|
|
|
{"NW", "Deep Fried Entertainment"},
|
|
|
|
{"NX", "Barnstorm Games"},
|
|
|
|
{"NY", "Nicalis"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"P1", "Poisoft"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"PH", "Playful Entertainment"},
|
|
|
|
{"PK", "Knowledge Adventure"},
|
|
|
|
{"PL", "Playlogic Entertainment"},
|
|
|
|
{"PM", "Warner Bros. Interactive Entertainment"},
|
|
|
|
{"PN", "P2 Games"},
|
|
|
|
{"PQ", "PopCap Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"PS", "Bplus"},
|
|
|
|
{"PT", "Firemint"},
|
|
|
|
{"PU", "Pub Company"},
|
|
|
|
{"PV", "Pan Vision"},
|
|
|
|
{"PY", "Playstos Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"PZ", "GameMill Publishing"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"Q2", "Santa Entertainment"},
|
|
|
|
{"Q3", "Asterizm"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"Q4", "Hamster"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"Q5", "Recom"},
|
|
|
|
{"QA", "Miracle Kidz"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"QC", "Kadokawa Shoten / Enterbrain"},
|
|
|
|
{"QH", "Virtual Play Games"},
|
|
|
|
{"QK", "MACHINE Studios"},
|
|
|
|
{"QM", "Object Vision Software"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"QQ", "Gamelion"},
|
|
|
|
{"QR", "Lapland Studio"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"QT", "CALARIS"},
|
|
|
|
{"QU", "QubicGames"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"QV", "Ludia"},
|
|
|
|
{"QW", "Kaasa Solution"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"QX", "Press Play"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"QZ", "Hands-On Mobile"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"RA", "Office Create"},
|
|
|
|
{"RG", "Ronimo Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"RH", "h2f Games"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"RM", "Rondomedia"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"RN", "Mastiff / N3V Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"RQ", "GolemLabs & Zoozen"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"RS", "Brash Entertainment"},
|
|
|
|
{"RT", "RTL Enterprises"},
|
|
|
|
{"RV", "bitComposer Games"},
|
|
|
|
{"RW", "RealArcade"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"RX", "Reflexive Entertainment"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"RZ", "Akaoni Studio"},
|
|
|
|
{"S5", "SouthPeak Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"SH", "Sabarasa"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"SJ", "Cosmonaut Games"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"SP", "Blade Interactive Studios"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"SQ", "Sonalysts"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"SR", "SnapDragon Games"},
|
|
|
|
{"SS", "Sanuk Games"},
|
|
|
|
{"ST", "Stickmen Studios"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"SU", "Slitherine"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"SV", "SevenOne Intermedia"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"SZ", "Storm City Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"TH", "Kolkom"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"TJ", "Broken Rules"},
|
2017-10-01 18:53:01 +00:00
|
|
|
{"TL", "Telltale Games"},
|
|
|
|
{"TR", "Tetris Online"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"TS", "Triangle Studios"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"TV", "Tivola"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"TW", "Two Tribes"},
|
|
|
|
{"TY", "Teyon"},
|
|
|
|
{"UG", "Data Design Interactive / Popcorn Arcade / Metro 3D"},
|
|
|
|
{"UH", "Intenium Console"},
|
|
|
|
{"UJ", "Ghostlight"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"UK", "iFun4all"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"UN", "Chillingo"},
|
|
|
|
{"UP", "EnjoyUp Games"},
|
|
|
|
{"UR", "Sudden Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"US", "USM"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"UU", "Onteca"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"UV", "Fugazo"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"UW", "Coresoft"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"VG", "Vogster Entertainment"},
|
|
|
|
{"VK", "Sandlot Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"VL", "Eko Software"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"VN", "Valcon Games"},
|
|
|
|
{"VP", "Virgin Play"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"VS", "Korner Entertainment"},
|
|
|
|
{"VT", "Microforum Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"VU", "Double Jungle"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"VV", "Pixonauts"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"VX", "Frontline Studios"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"VZ", "Little Orbit"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"WD", "Amazon"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"WG", "2D Boy"},
|
|
|
|
{"WH", "NinjaBee"},
|
|
|
|
{"WJ", "Studio Walljump"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"WL", "Wired Productions"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"WN", "tons of bits"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"WP", "White Park Bay Software"},
|
|
|
|
{"WQ", "Revistronic"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"WR", "Warner Bros. Interactive Entertainment"},
|
|
|
|
{"WS", "MonkeyPaw Games"},
|
|
|
|
{"WW", "Slang Publishing"},
|
|
|
|
{"WY", "WayForward Technologies"},
|
|
|
|
{"WZ", "Wizarbox"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"X0", "SDP Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"X3", "CK Games"},
|
|
|
|
{"X4", "Easy Interactive"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"XB", "Hulu"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"XG", "XGen Studios"},
|
|
|
|
{"XJ", "XSEED Games"},
|
|
|
|
{"XK", "Exkee"},
|
|
|
|
{"XM", "DreamBox Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"XN", "Netflix"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"XS", "Aksys Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"XT", "Funbox Media"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"XU", "Shanblue Interactive"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"XV", "Keystone Game Studio"},
|
|
|
|
{"XW", "Lemon Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"XY", "Gaijin Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"Y1", "Tubby Games"},
|
|
|
|
{"Y5", "Easy Interactive"},
|
|
|
|
{"Y6", "Motiviti"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"Y7", "The Learning Company"},
|
|
|
|
{"Y9", "RadiationBurn"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"YC", "NECA"},
|
|
|
|
{"YD", "Infinite Dreams"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"YF", "O2 Games"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"YG", "Maximum Family Games"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"YJ", "Frozen Codebase"},
|
|
|
|
{"YK", "MAD Multimedia"},
|
|
|
|
{"YN", "Game Factory"},
|
|
|
|
{"YS", "Yullaby"},
|
2019-09-23 17:59:44 +00:00
|
|
|
{"YT", "Corecell Technology"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"YV", "KnapNok Games"},
|
|
|
|
{"YX", "Selectsoft"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"YY", "FDG Entertainment"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"Z4", "Ntreev Soft"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"Z5", "Shinsegae I&C"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"ZA", "WBA Interactive"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"ZG", "Zallag"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"ZH", "Internal Engine"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"ZJ", "Performance Designed Products"},
|
|
|
|
{"ZK", "Anima Game Studio"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"ZP", "Fishing Cactus"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"ZS", "Zinkia Entertainment"},
|
2019-09-21 21:31:51 +00:00
|
|
|
{"ZV", "RedLynx"},
|
2015-05-24 15:41:53 +00:00
|
|
|
{"ZW", "Judo Baby"},
|
2017-10-08 23:17:06 +00:00
|
|
|
{"ZX", "TopWare Interactive"}};
|
2015-05-24 15:41:53 +00:00
|
|
|
|
2017-12-31 19:33:36 +00:00
|
|
|
static const std::string EMPTY_STRING;
|
2015-05-24 15:41:53 +00:00
|
|
|
auto iterator = companies.find(company_id);
|
|
|
|
if (iterator != companies.end())
|
|
|
|
return iterator->second;
|
|
|
|
else
|
2017-12-31 19:33:36 +00:00
|
|
|
return EMPTY_STRING;
|
2015-05-24 15:41:53 +00:00
|
|
|
}
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace DiscIO
|