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