Qt/GameList: Add "Host with NetPlay" option

This commit is contained in:
spycrab 2017-07-24 16:02:12 +02:00
parent 13fac93a29
commit 2e29509b75
2 changed files with 4 additions and 2 deletions

View File

@ -200,7 +200,9 @@ void GameList::ShowContextMenu(const QPoint&)
QAction* netplay_host = new QAction(tr("Host with NetPlay"), menu);
connect(netplay_host, &QAction::triggered, [this, game] { emit NetPlayHost(game); });
connect(netplay_host, &QAction::triggered,
[this, game] { emit NetPlayHost(GameFile(game).GetUniqueID()); });
connect(this, &GameList::EmulationStarted, netplay_host,
[netplay_host] { netplay_host->setEnabled(false); });
connect(this, &GameList::EmulationStopped, netplay_host,

View File

@ -32,7 +32,7 @@ signals:
void GameSelected();
void EmulationStarted();
void EmulationStopped();
void NetPlayHost(const QString& game_path);
void NetPlayHost(const QString& game_id);
private:
void ShowContextMenu(const QPoint&);