Add Triforce platform and preliminary boot.id parsing

This commit is contained in:
Zopolis4
2021-08-10 07:49:34 +10:00
parent 494e2c05c2
commit 71f654cdc4
15 changed files with 41 additions and 4 deletions

View File

@ -93,6 +93,7 @@ QGroupBox* InfoWidget::CreateGameDetails()
const QString game_name = QString::fromStdString(m_game.GetInternalName());
bool is_disc_based = m_game.GetPlatform() == DiscIO::Platform::GameCubeDisc ||
m_game.GetPlatform() == DiscIO::Platform::Triforce ||
m_game.GetPlatform() == DiscIO::Platform::WiiDisc;
QLineEdit* internal_name =

View File

@ -303,6 +303,8 @@ bool GameListModel::ShouldDisplayGameListItem(int index) const
{
case DiscIO::Platform::GameCubeDisc:
return Config::Get(Config::MAIN_GAMELIST_LIST_GC);
case DiscIO::Platform::Triforce:
return Config::Get(Config::MAIN_GAMELIST_LIST_TRI);
case DiscIO::Platform::WiiDisc:
return Config::Get(Config::MAIN_GAMELIST_LIST_WII);
case DiscIO::Platform::WiiWAD:

View File

@ -726,6 +726,7 @@ void MenuBar::AddShowPlatformsMenu(QMenu* view_menu)
static const QMap<QString, const Config::Info<bool>*> platform_map{
{tr("Show Wii"), &Config::MAIN_GAMELIST_LIST_WII},
{tr("Show GameCube"), &Config::MAIN_GAMELIST_LIST_GC},
{tr("Show Triforce"), &Config::MAIN_GAMELIST_LIST_TRI},
{tr("Show WAD"), &Config::MAIN_GAMELIST_LIST_WAD},
{tr("Show ELF/DOL"), &Config::MAIN_GAMELIST_LIST_ELF_DOL}};

View File

@ -80,7 +80,7 @@ void Resources::Init()
m_svg_supported = QImageReader::supportedImageFormats().contains("svg");
for (std::string_view platform :
{"Platform_Gamecube", "Platform_Wii", "Platform_Wad", "Platform_File"})
{"Platform_Gamecube", "Platform_Triforce", "Platform_Wii", "Platform_Wad", "Platform_File"})
{
m_platforms.append(GetResourceIcon(platform));
}