Merge pull request #5746 from leoetlino/disc-updates

Add support for installing disc updates from the game list
This commit is contained in:
Leo Lam
2017-08-16 19:02:42 +08:00
committed by GitHub
17 changed files with 491 additions and 119 deletions

View File

@ -29,6 +29,7 @@
#include "DolphinQt2/GameList/ListProxyModel.h"
#include "DolphinQt2/QtUtils/DoubleClickEventFilter.h"
#include "DolphinQt2/Settings.h"
#include "DolphinQt2/WiiUpdate.h"
static bool CompressCB(const std::string&, float, void*);
@ -164,6 +165,15 @@ void GameList::ShowContextMenu(const QPoint&)
menu->addSeparator();
}
if (platform == DiscIO::Platform::WII_DISC)
{
menu->addAction(tr("Perform System Update"), [this] {
WiiUpdate::PerformDiscUpdate(GetSelectedGame().toStdString(), this);
});
menu->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
}
if (platform == DiscIO::Platform::WII_WAD)
{
QAction* wad_install_action = new QAction(tr("Install to the NAND"), menu);