mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DolphinQt: Add ability to start a game with Riivolution patches from the GUI.
This commit is contained in:
@ -353,6 +353,11 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
|
||||
if (DiscIO::IsDisc(platform))
|
||||
{
|
||||
menu->addAction(tr("Start with Riivolution Patches..."), this,
|
||||
&GameList::StartWithRiivolution);
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
menu->addAction(tr("Set as &Default ISO"), this, &GameList::SetDefaultISO);
|
||||
|
||||
if (game->ShouldAllowConversion())
|
||||
@ -587,6 +592,15 @@ void GameList::UninstallWAD()
|
||||
result_dialog.exec();
|
||||
}
|
||||
|
||||
void GameList::StartWithRiivolution()
|
||||
{
|
||||
const auto game = GetSelectedGame();
|
||||
if (!game)
|
||||
return;
|
||||
|
||||
emit OnStartWithRiivolution(*game);
|
||||
}
|
||||
|
||||
void GameList::SetDefaultISO()
|
||||
{
|
||||
const auto game = GetSelectedGame();
|
||||
|
@ -50,6 +50,7 @@ public:
|
||||
|
||||
signals:
|
||||
void GameSelected();
|
||||
void OnStartWithRiivolution(const UICommon::GameFile& game);
|
||||
void NetPlayHost(const UICommon::GameFile& game);
|
||||
void SelectionChanged(std::shared_ptr<const UICommon::GameFile> game_file);
|
||||
void OpenGeneralSettings();
|
||||
@ -62,6 +63,7 @@ private:
|
||||
void OpenWiiSaveFolder();
|
||||
void OpenGCSaveFolder();
|
||||
void OpenWiki();
|
||||
void StartWithRiivolution();
|
||||
void SetDefaultISO();
|
||||
void DeleteFile();
|
||||
#ifdef _WIN32
|
||||
|
Reference in New Issue
Block a user