mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
DiscIO: Don't use all uppercase for enum values
Also removing some prefixes that we don't need now that we're using enum classes instead of plain enums.
This commit is contained in:
@ -78,7 +78,7 @@ QGroupBox* InfoWidget::CreateBannerDetails()
|
||||
CreateLanguageSelector();
|
||||
|
||||
layout->addRow(tr("Show Language:"), m_language_selector);
|
||||
if (m_game.GetPlatform() == DiscIO::Platform::GAMECUBE_DISC)
|
||||
if (m_game.GetPlatform() == DiscIO::Platform::GameCubeDisc)
|
||||
{
|
||||
layout->addRow(tr("Name:"), m_name);
|
||||
layout->addRow(tr("Maker:"), m_maker);
|
||||
|
@ -168,7 +168,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
AddAction(menu, tr("&Wiki"), this, &GameList::OpenWiki);
|
||||
menu->addSeparator();
|
||||
|
||||
if (platform == DiscIO::Platform::GAMECUBE_DISC || platform == DiscIO::Platform::WII_DISC)
|
||||
if (platform == DiscIO::Platform::GameCubeDisc || platform == DiscIO::Platform::WiiDisc)
|
||||
{
|
||||
AddAction(menu, tr("Set as &default ISO"), this, &GameList::SetDefaultISO);
|
||||
const auto blob_type = game->GetBlobType();
|
||||
@ -187,7 +187,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
menu->addSeparator();
|
||||
}
|
||||
|
||||
if (platform == DiscIO::Platform::WII_DISC)
|
||||
if (platform == DiscIO::Platform::WiiDisc)
|
||||
{
|
||||
auto* perform_disc_update = AddAction(menu, tr("Perform System Update"), this, [this] {
|
||||
WiiUpdate::PerformDiscUpdate(GetSelectedGame()->GetFilePath(), this);
|
||||
@ -195,7 +195,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
|
||||
}
|
||||
|
||||
if (platform == DiscIO::Platform::WII_WAD)
|
||||
if (platform == DiscIO::Platform::WiiWAD)
|
||||
{
|
||||
QAction* wad_install_action = new QAction(tr("Install to the NAND"), menu);
|
||||
QAction* wad_uninstall_action = new QAction(tr("Uninstall from the NAND"), menu);
|
||||
@ -218,7 +218,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
menu->addSeparator();
|
||||
}
|
||||
|
||||
if (platform == DiscIO::Platform::WII_WAD || platform == DiscIO::Platform::WII_DISC)
|
||||
if (platform == DiscIO::Platform::WiiWAD || platform == DiscIO::Platform::WiiDisc)
|
||||
{
|
||||
AddAction(menu, tr("Open Wii &save folder"), this, &GameList::OpenSaveFolder);
|
||||
AddAction(menu, tr("Export Wii save (Experimental)"), this, &GameList::ExportWiiSave);
|
||||
@ -278,7 +278,7 @@ void GameList::CompressISO()
|
||||
|
||||
const bool compressed = (file->GetBlobType() == DiscIO::BlobType::GCZ);
|
||||
|
||||
if (!compressed && file->GetPlatform() == DiscIO::Platform::WII_DISC)
|
||||
if (!compressed && file->GetPlatform() == DiscIO::Platform::WiiDisc)
|
||||
{
|
||||
QMessageBox wii_warning(this);
|
||||
wii_warning.setIcon(QMessageBox::Warning);
|
||||
@ -319,7 +319,7 @@ void GameList::CompressISO()
|
||||
else
|
||||
{
|
||||
good = DiscIO::CompressFileToBlob(original_path, dst_path.toStdString(),
|
||||
file->GetPlatform() == DiscIO::Platform::WII_DISC ? 1 : 0,
|
||||
file->GetPlatform() == DiscIO::Platform::WiiDisc ? 1 : 0,
|
||||
16384, &CompressCB, &progress_dialog);
|
||||
}
|
||||
|
||||
|
@ -157,13 +157,13 @@ bool GameListModel::ShouldDisplayGameListItem(int index) const
|
||||
const bool show_platform = [&game] {
|
||||
switch (game.GetPlatform())
|
||||
{
|
||||
case DiscIO::Platform::GAMECUBE_DISC:
|
||||
case DiscIO::Platform::GameCubeDisc:
|
||||
return SConfig::GetInstance().m_ListGC;
|
||||
case DiscIO::Platform::WII_DISC:
|
||||
case DiscIO::Platform::WiiDisc:
|
||||
return SConfig::GetInstance().m_ListWii;
|
||||
case DiscIO::Platform::WII_WAD:
|
||||
case DiscIO::Platform::WiiWAD:
|
||||
return SConfig::GetInstance().m_ListWad;
|
||||
case DiscIO::Platform::ELF_DOL:
|
||||
case DiscIO::Platform::ELFOrDOL:
|
||||
return SConfig::GetInstance().m_ListElfDol;
|
||||
default:
|
||||
return false;
|
||||
@ -175,33 +175,33 @@ bool GameListModel::ShouldDisplayGameListItem(int index) const
|
||||
|
||||
switch (game.GetCountry())
|
||||
{
|
||||
case DiscIO::Country::COUNTRY_AUSTRALIA:
|
||||
case DiscIO::Country::Australia:
|
||||
return SConfig::GetInstance().m_ListAustralia;
|
||||
case DiscIO::Country::COUNTRY_EUROPE:
|
||||
case DiscIO::Country::Europe:
|
||||
return SConfig::GetInstance().m_ListPal;
|
||||
case DiscIO::Country::COUNTRY_FRANCE:
|
||||
case DiscIO::Country::France:
|
||||
return SConfig::GetInstance().m_ListFrance;
|
||||
case DiscIO::Country::COUNTRY_GERMANY:
|
||||
case DiscIO::Country::Germany:
|
||||
return SConfig::GetInstance().m_ListGermany;
|
||||
case DiscIO::Country::COUNTRY_ITALY:
|
||||
case DiscIO::Country::Italy:
|
||||
return SConfig::GetInstance().m_ListItaly;
|
||||
case DiscIO::Country::COUNTRY_JAPAN:
|
||||
case DiscIO::Country::Japan:
|
||||
return SConfig::GetInstance().m_ListJap;
|
||||
case DiscIO::Country::COUNTRY_KOREA:
|
||||
case DiscIO::Country::Korea:
|
||||
return SConfig::GetInstance().m_ListKorea;
|
||||
case DiscIO::Country::COUNTRY_NETHERLANDS:
|
||||
case DiscIO::Country::Netherlands:
|
||||
return SConfig::GetInstance().m_ListNetherlands;
|
||||
case DiscIO::Country::COUNTRY_RUSSIA:
|
||||
case DiscIO::Country::Russia:
|
||||
return SConfig::GetInstance().m_ListRussia;
|
||||
case DiscIO::Country::COUNTRY_SPAIN:
|
||||
case DiscIO::Country::Spain:
|
||||
return SConfig::GetInstance().m_ListSpain;
|
||||
case DiscIO::Country::COUNTRY_TAIWAN:
|
||||
case DiscIO::Country::Taiwan:
|
||||
return SConfig::GetInstance().m_ListTaiwan;
|
||||
case DiscIO::Country::COUNTRY_USA:
|
||||
case DiscIO::Country::USA:
|
||||
return SConfig::GetInstance().m_ListUsa;
|
||||
case DiscIO::Country::COUNTRY_WORLD:
|
||||
case DiscIO::Country::World:
|
||||
return SConfig::GetInstance().m_ListWorld;
|
||||
case DiscIO::Country::COUNTRY_UNKNOWN:
|
||||
case DiscIO::Country::Unknown:
|
||||
default:
|
||||
return SConfig::GetInstance().m_ListUnknown;
|
||||
}
|
||||
|
Reference in New Issue
Block a user