Qt: More flags and regions + enabling more icons
In reality it will show multiple flags like Korean flag but the flags aren't correct due to the structure in the GameDB actually being the languages more than the actual region. At least people will have Korean flags and others for now and fix GameDB later as it's still a nightly/development cycle. Though there are about 30 country flags included for future usage as of now.
|
@ -286,12 +286,64 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
|||
{
|
||||
switch (ge->region)
|
||||
{
|
||||
case GameList::Region::NTSC_B:
|
||||
return m_region_b_pixmap;
|
||||
case GameList::Region::NTSC_C:
|
||||
return m_region_c_pixmap;
|
||||
case GameList::Region::NTSC_HK:
|
||||
return m_region_hk_pixmap;
|
||||
case GameList::Region::NTSC_J:
|
||||
return m_region_jp_pixmap;
|
||||
case GameList::Region::NTSC_UC:
|
||||
case GameList::Region::NTSC_K:
|
||||
return m_region_k_pixmap;
|
||||
case GameList::Region::NTSC_T:
|
||||
return m_region_t_pixmap;
|
||||
case GameList::Region::NTSC_U:
|
||||
return m_region_us_pixmap;
|
||||
case GameList::Region::PAL:
|
||||
return m_region_eu_pixmap;
|
||||
case GameList::Region::PAL_A:
|
||||
return m_region_a_pixmap;
|
||||
case GameList::Region::PAL_AF:
|
||||
return m_region_af_pixmap;
|
||||
case GameList::Region::PAL_AU:
|
||||
return m_region_au_pixmap;
|
||||
case GameList::Region::PAL_BE:
|
||||
return m_region_be_pixmap;
|
||||
case GameList::Region::PAL_E:
|
||||
return m_region_eu_pixmap;
|
||||
case GameList::Region::PAL_F:
|
||||
return m_region_f_pixmap;
|
||||
case GameList::Region::PAL_FI:
|
||||
return m_region_fi_pixmap;
|
||||
case GameList::Region::PAL_G:
|
||||
return m_region_g_pixmap;
|
||||
case GameList::Region::PAL_GR:
|
||||
return m_region_gr_pixmap;
|
||||
case GameList::Region::PAL_I:
|
||||
return m_region_i_pixmap;
|
||||
case GameList::Region::PAL_IN:
|
||||
return m_region_in_pixmap;
|
||||
case GameList::Region::PAL_M:
|
||||
return m_region_eu_pixmap;
|
||||
case GameList::Region::PAL_NL:
|
||||
return m_region_nl_pixmap;
|
||||
case GameList::Region::PAL_NO:
|
||||
return m_region_no_pixmap;
|
||||
case GameList::Region::PAL_P:
|
||||
return m_region_p_pixmap;
|
||||
case GameList::Region::PAL_R:
|
||||
return m_region_r_pixmap;
|
||||
case GameList::Region::PAL_S:
|
||||
return m_region_s_pixmap;
|
||||
case GameList::Region::PAL_SC:
|
||||
return m_region_sc_pixmap;
|
||||
case GameList::Region::PAL_SW:
|
||||
return m_region_sw_pixmap;
|
||||
case GameList::Region::PAL_SWI:
|
||||
return m_region_swi_pixmap;
|
||||
case GameList::Region::PAL_UK:
|
||||
return m_region_uk_pixmap;
|
||||
case GameList::Region::Other:
|
||||
default:
|
||||
return m_region_other_pixmap;
|
||||
|
@ -470,6 +522,28 @@ void GameListModel::loadCommonImages()
|
|||
m_region_eu_pixmap = QIcon(QStringLiteral(":/icons/flag-eu.png")).pixmap(QSize(42, 30));
|
||||
m_region_jp_pixmap = QIcon(QStringLiteral(":/icons/flag-jp.png")).pixmap(QSize(42, 30));
|
||||
m_region_us_pixmap = QIcon(QStringLiteral(":/icons/flag-us.png")).pixmap(QSize(42, 30));
|
||||
m_region_a_pixmap = QIcon(QStringLiteral(":/icons/flag-a.png")).pixmap(QSize(42, 30));
|
||||
m_region_af_pixmap = QIcon(QStringLiteral(":/icons/flag-af.png")).pixmap(QSize(42, 30));
|
||||
m_region_au_pixmap = QIcon(QStringLiteral(":/icons/flag-au.png")).pixmap(QSize(42, 30));
|
||||
m_region_b_pixmap = QIcon(QStringLiteral(":/icons/flag-b.png")).pixmap(QSize(42, 30));
|
||||
m_region_be_pixmap = QIcon(QStringLiteral(":/icons/flag-be.png")).pixmap(QSize(42, 30));
|
||||
m_region_c_pixmap = QIcon(QStringLiteral(":/icons/flag-c.png")).pixmap(QSize(42, 30));
|
||||
m_region_f_pixmap = QIcon(QStringLiteral(":/icons/flag-f.png")).pixmap(QSize(42, 30));
|
||||
m_region_fi_pixmap = QIcon(QStringLiteral(":/icons/flag-fi.png")).pixmap(QSize(42, 30));
|
||||
m_region_g_pixmap = QIcon(QStringLiteral(":/icons/flag-g.png")).pixmap(QSize(42, 30));
|
||||
m_region_gr_pixmap = QIcon(QStringLiteral(":/icons/flag-gr.png")).pixmap(QSize(42, 30));
|
||||
m_region_hk_pixmap = QIcon(QStringLiteral(":/icons/flag-hk.png")).pixmap(QSize(42, 30));
|
||||
m_region_i_pixmap = QIcon(QStringLiteral(":/icons/flag-i.png")).pixmap(QSize(42, 30));
|
||||
m_region_in_pixmap = QIcon(QStringLiteral(":/icons/flag-in.png")).pixmap(QSize(42, 30));
|
||||
m_region_k_pixmap = QIcon(QStringLiteral(":/icons/flag-k.png")).pixmap(QSize(42, 30));
|
||||
m_region_nl_pixmap = QIcon(QStringLiteral(":/icons/flag-nl.png")).pixmap(QSize(42, 30));
|
||||
m_region_no_pixmap = QIcon(QStringLiteral(":/icons/flag-no.png")).pixmap(QSize(42, 30));
|
||||
m_region_p_pixmap = QIcon(QStringLiteral(":/icons/flag-p.png")).pixmap(QSize(42, 30));
|
||||
m_region_r_pixmap = QIcon(QStringLiteral(":/icons/flag-r.png")).pixmap(QSize(42, 30));
|
||||
m_region_s_pixmap = QIcon(QStringLiteral(":/icons/flag-s.png")).pixmap(QSize(42, 30));
|
||||
m_region_sc_pixmap = QIcon(QStringLiteral(":/icons/flag-sc.png")).pixmap(QSize(42, 30));
|
||||
m_region_sw_pixmap = QIcon(QStringLiteral(":/icons/flag-sw.png")).pixmap(QSize(42, 30));
|
||||
m_region_swi_pixmap = QIcon(QStringLiteral(":/icons/flag-swi.png")).pixmap(QSize(42, 30));
|
||||
m_region_other_pixmap = QIcon(QStringLiteral(":/icons/flag-other.png")).pixmap(QSize(42, 30));
|
||||
|
||||
for (u32 i = 1; i < GameList::CompatibilityRatingCount; i++)
|
||||
|
|
|
@ -85,11 +85,35 @@ private:
|
|||
QPixmap m_type_exe_pixmap;
|
||||
QPixmap m_type_playlist_pixmap;
|
||||
|
||||
QPixmap m_region_jp_pixmap;
|
||||
QPixmap m_region_a_pixmap;
|
||||
QPixmap m_region_af_pixmap;
|
||||
QPixmap m_region_au_pixmap;
|
||||
QPixmap m_region_b_pixmap;
|
||||
QPixmap m_region_be_pixmap;
|
||||
QPixmap m_region_c_pixmap;
|
||||
QPixmap m_region_eu_pixmap;
|
||||
QPixmap m_region_us_pixmap;
|
||||
QPixmap m_region_f_pixmap;
|
||||
QPixmap m_region_fi_pixmap;
|
||||
QPixmap m_region_g_pixmap;
|
||||
QPixmap m_region_gr_pixmap;
|
||||
QPixmap m_region_hk_pixmap;
|
||||
QPixmap m_region_i_pixmap;
|
||||
QPixmap m_region_jp_pixmap;
|
||||
QPixmap m_region_in_pixmap;
|
||||
QPixmap m_region_k_pixmap;
|
||||
QPixmap m_region_nl_pixmap;
|
||||
QPixmap m_region_no_pixmap;
|
||||
QPixmap m_region_other_pixmap;
|
||||
|
||||
QPixmap m_region_p_pixmap;
|
||||
QPixmap m_region_r_pixmap;
|
||||
QPixmap m_region_s_pixmap;
|
||||
QPixmap m_region_t_pixmap;
|
||||
QPixmap m_region_uk_pixmap;
|
||||
QPixmap m_region_us_pixmap;
|
||||
QPixmap m_region_sc_pixmap;
|
||||
QPixmap m_region_sw_pixmap;
|
||||
QPixmap m_region_swi_pixmap;
|
||||
|
||||
QPixmap m_placeholder_pixmap;
|
||||
|
||||
std::array<QPixmap, static_cast<int>(GameList::CompatibilityRatingCount)> m_compatibility_pixmaps;
|
||||
|
|
|
@ -96,11 +96,29 @@
|
|||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NTSC-U/C (US/Canada)</string>
|
||||
<string>NTSC-B (Brazil)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-us.png</normaloff>:/icons/flag-us.png</iconset>
|
||||
<normaloff>:/icons/flag-b.png</normaloff>:/icons/flag-b.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NTSC-C (China)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-c.png</normaloff>:/icons/flag-c.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NTSC-HK (Hong Kong)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-hk.png</normaloff>:/icons/flag-hk.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -114,11 +132,29 @@
|
|||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL (Europe/Australia)</string>
|
||||
<string>NTSC-K (Korea)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-eu.png</normaloff>:/icons/flag-eu.png</iconset>
|
||||
<normaloff>:/icons/flag-k.png</normaloff>:/icons/flag-k.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NTSC-T (Taiwan)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-t.png</normaloff>:/icons/flag-t.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NTSC-U (US)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-us.png</normaloff>:/icons/flag-us.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -130,6 +166,204 @@
|
|||
<normaloff>:/icons/flag-other.png</normaloff>:/icons/flag-other.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL (Europe)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-eu.png</normaloff>:/icons/flag-eu.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-A (Australia)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-a.png</normaloff>:/icons/flag-a.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-AF (South Africa)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-af.png</normaloff>:/icons/flag-af.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-AU (Austria)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-au.png</normaloff>:/icons/flag-au.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-BE (Belgium)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-be.png</normaloff>:/icons/flag-be.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-E (Europe/Australia)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-eu.png</normaloff>:/icons/flag-eu.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-F (France)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-f.png</normaloff>:/icons/flag-f.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-FI (Finland)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-fi.png</normaloff>:/icons/flag-fi.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-G (Germany)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-g.png</normaloff>:/icons/flag-g.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-GR (Greece)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-gr.png</normaloff>:/icons/flag-gr.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-I (Italy)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-i.png</normaloff>:/icons/flag-i.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-IN (India)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-in.png</normaloff>:/icons/flag-in.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-NL (Netherlands)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-nl.png</normaloff>:/icons/flag-nl.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-M (Europe/Australia)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-eu.png</normaloff>:/icons/flag-eu.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-NO (Norway)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-no.png</normaloff>:/icons/flag-no.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-P (Portugal)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-p.png</normaloff>:/icons/flag-p.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-R (Russia)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-r.png</normaloff>:/icons/flag-r.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-S (Spain)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-s.png</normaloff>:/icons/flag-s.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-SC (Scandinavia)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-sc.png</normaloff>:/icons/flag-sc.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-SW (Sweden)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-sw.png</normaloff>:/icons/flag-sw.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-SWI (Switzerland)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-swi.png</normaloff>:/icons/flag-swi.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAL-UK (United Kingdom)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/flag-uk.png</normaloff>:/icons/flag-uk.png</iconset>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
|
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1016 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 896 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 959 B |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 912 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1018 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 600 B |
|
@ -46,6 +46,8 @@
|
|||
<file>icons/black/index.theme</file>
|
||||
<file>icons/discord.png</file>
|
||||
<file>icons/flag-a.png</file>
|
||||
<file>icons/flag-af.png</file>
|
||||
<file>icons/flag-au.png</file>
|
||||
<file>icons/flag-b.png</file>
|
||||
<file>icons/flag-be.png</file>
|
||||
<file>icons/flag-c.png</file>
|
||||
|
@ -57,15 +59,19 @@
|
|||
<file>icons/flag-gr.png</file>
|
||||
<file>icons/flag-hk.png</file>
|
||||
<file>icons/flag-i.png</file>
|
||||
<file>icons/flag-in.png</file>
|
||||
<file>icons/flag-jp.png</file>
|
||||
<file>icons/flag-k.png</file>
|
||||
<file>icons/flag-nl.png</file>
|
||||
<file>icons/flag-no.png</file>
|
||||
<file>icons/flag-other.png</file>
|
||||
<file>icons/flag-p.png</file>
|
||||
<file>icons/flag-r.png</file>
|
||||
<file>icons/flag-s.png</file>
|
||||
<file>icons/flag-sc.png</file>
|
||||
<file>icons/flag-sw.png</file>
|
||||
<file>icons/flag-swi.png</file>
|
||||
<file>icons/flag-t.png</file>
|
||||
<file>icons/flag-uk.png</file>
|
||||
<file>icons/flag-us.png</file>
|
||||
<file>icons/logo.png</file>
|
||||
|
|
|
@ -89,7 +89,8 @@ const char* GameList::EntryTypeToString(EntryType type)
|
|||
const char* GameList::RegionToString(Region region)
|
||||
{
|
||||
static std::array<const char*, static_cast<int>(Region::Count)> names = {
|
||||
{"NTSC-U/C", "NTSC-J", "PAL", "Other"}};
|
||||
{"NTSC-B", "NTSC-C", "NTSC-HK", "NTSC-J", "NTSC-K", "NTSC-T", "NTSC-U", "Other", "PAL", "PAL-A", "PAL-AF", "PAL-AU", "PAL-BE", "PAL-E", "PAL-F", "PAL-FI", "PAL-G", "PAL-GR", "PAL-I", "PAL-IN", "PAL-M", "PAL-NL", "PAL-NO", "PAL-P", "PAL-R", "PAL-S", "PAL-SC", "PAL-SW", "PAL-SWI", "PAL-UK"}};
|
||||
|
||||
return names[static_cast<int>(region)];
|
||||
}
|
||||
|
||||
|
@ -224,12 +225,64 @@ bool GameList::GetIsoListEntry(const std::string& path, GameList::Entry* entry)
|
|||
{
|
||||
entry->title = std::move(db_entry->name);
|
||||
entry->compatibility_rating = db_entry->compat;
|
||||
if (StringUtil::StartsWith(db_entry->region, "NTSC-J"))
|
||||
if (StringUtil::StartsWith(db_entry->region, "NTSC-B"))
|
||||
entry->region = Region::NTSC_B;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-C"))
|
||||
entry->region = Region::NTSC_C;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-HK"))
|
||||
entry->region = Region::NTSC_HK;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-J"))
|
||||
entry->region = Region::NTSC_J;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC"))
|
||||
entry->region = Region::NTSC_UC;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-K"))
|
||||
entry->region = Region::NTSC_K;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-T"))
|
||||
entry->region = Region::NTSC_T;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "NTSC-U"))
|
||||
entry->region = Region::NTSC_U;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL"))
|
||||
entry->region = Region::PAL;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-A"))
|
||||
entry->region = Region::PAL_A;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-AF"))
|
||||
entry->region = Region::PAL_AF;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-AU"))
|
||||
entry->region = Region::PAL_AU;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-BE"))
|
||||
entry->region = Region::PAL_BE;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-E"))
|
||||
entry->region = Region::PAL_E;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-F"))
|
||||
entry->region = Region::PAL_F;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-FI"))
|
||||
entry->region = Region::PAL_FI;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-G"))
|
||||
entry->region = Region::PAL_G;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-GR"))
|
||||
entry->region = Region::PAL_GR;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-I"))
|
||||
entry->region = Region::PAL_I;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-IN"))
|
||||
entry->region = Region::PAL_IN;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-M"))
|
||||
entry->region = Region::PAL_M;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-NL"))
|
||||
entry->region = Region::PAL_NL;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-NO"))
|
||||
entry->region = Region::PAL_NO;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-P"))
|
||||
entry->region = Region::PAL_P;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-R"))
|
||||
entry->region = Region::PAL_R;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-S"))
|
||||
entry->region = Region::PAL_S;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-SC"))
|
||||
entry->region = Region::PAL_SC;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-SW"))
|
||||
entry->region = Region::PAL_SW;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-SWI"))
|
||||
entry->region = Region::PAL_SWI;
|
||||
else if (StringUtil::StartsWith(db_entry->region, "PAL-UK"))
|
||||
entry->region = Region::PAL_UK;
|
||||
else
|
||||
entry->region = Region::Other;
|
||||
}
|
||||
|
|
|
@ -42,10 +42,36 @@ namespace GameList
|
|||
|
||||
enum class Region
|
||||
{
|
||||
NTSC_UC,
|
||||
NTSC_B,
|
||||
NTSC_C,
|
||||
NTSC_HK,
|
||||
NTSC_J,
|
||||
PAL,
|
||||
NTSC_K,
|
||||
NTSC_T,
|
||||
NTSC_U,
|
||||
Other,
|
||||
PAL,
|
||||
PAL_A,
|
||||
PAL_AF,
|
||||
PAL_AU,
|
||||
PAL_BE,
|
||||
PAL_E,
|
||||
PAL_F,
|
||||
PAL_FI,
|
||||
PAL_G,
|
||||
PAL_GR,
|
||||
PAL_I,
|
||||
PAL_IN,
|
||||
PAL_M,
|
||||
PAL_NL,
|
||||
PAL_NO,
|
||||
PAL_P,
|
||||
PAL_R,
|
||||
PAL_S,
|
||||
PAL_SC,
|
||||
PAL_SW,
|
||||
PAL_SWI,
|
||||
PAL_UK,
|
||||
Count
|
||||
};
|
||||
|
||||
|
|