summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameList.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2021-10-26 02:01:16 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2021-12-12 21:26:09 +0100
commitda161faff46d9de45b4e80ebf498fc11f85bb493 (patch)
tree8f94fe54b347dd279c3a7d0f939ed1d064f5c80f /Source/Core/DolphinQt/GameList/GameList.cpp
parentaa0595589aa10d5c6958b61814628d8c12f3f087 (diff)
GameList: Show game mod descriptor .json files in game list.
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameList.cpp')
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp
index 85b09600bb..a8c62fbd2e 100644
--- a/Source/Core/DolphinQt/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt/GameList/GameList.cpp
@@ -352,16 +352,17 @@ void GameList::ShowContextMenu(const QPoint&)
else
{
const auto game = GetSelectedGame();
+ const bool is_mod_descriptor = game->IsModDescriptor();
DiscIO::Platform platform = game->GetPlatform();
menu->addAction(tr("&Properties"), this, &GameList::OpenProperties);
- if (platform != DiscIO::Platform::ELFOrDOL)
+ if (!is_mod_descriptor && platform != DiscIO::Platform::ELFOrDOL)
{
menu->addAction(tr("&Wiki"), this, &GameList::OpenWiki);
}
menu->addSeparator();
- if (DiscIO::IsDisc(platform))
+ if (!is_mod_descriptor && DiscIO::IsDisc(platform))
{
menu->addAction(tr("Start with Riivolution Patches..."), this,
&GameList::StartWithRiivolution);
@@ -382,7 +383,7 @@ void GameList::ShowContextMenu(const QPoint&)
menu->addSeparator();
}
- if (platform == DiscIO::Platform::WiiDisc)
+ if (!is_mod_descriptor && platform == DiscIO::Platform::WiiDisc)
{
auto* perform_disc_update = menu->addAction(tr("Perform System Update"), this,
[this, file_path = game->GetFilePath()] {
@@ -394,7 +395,7 @@ void GameList::ShowContextMenu(const QPoint&)
perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
}
- if (platform == DiscIO::Platform::WiiWAD)
+ if (!is_mod_descriptor && 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);
@@ -420,14 +421,15 @@ void GameList::ShowContextMenu(const QPoint&)
menu->addSeparator();
}
- if (platform == DiscIO::Platform::WiiWAD || platform == DiscIO::Platform::WiiDisc)
+ if (!is_mod_descriptor &&
+ (platform == DiscIO::Platform::WiiWAD || platform == DiscIO::Platform::WiiDisc))
{
menu->addAction(tr("Open Wii &Save Folder"), this, &GameList::OpenWiiSaveFolder);
menu->addAction(tr("Export Wii Save"), this, &GameList::ExportWiiSave);
menu->addSeparator();
}
- if (platform == DiscIO::Platform::GameCubeDisc)
+ if (!is_mod_descriptor && platform == DiscIO::Platform::GameCubeDisc)
{
menu->addAction(tr("Open GameCube &Save Folder"), this, &GameList::OpenGCSaveFolder);
menu->addSeparator();