summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-05-20 22:25:33 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-05-24 23:20:45 -0700
commit2341ff00ab3484360de03e5dc1c43dbe522f361f (patch)
tree6c475538cb48b42b7c3ce471eeb270b426e7e380 /Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
parentea9b0bff08dab1df92c9aca2da3e748942d85955 (diff)
NetPlay: Make messages about non-matching games clearer
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp33
1 files changed, 25 insertions, 8 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
index 02f7497b82..4a297acea3 100644
--- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
+++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
@@ -611,25 +611,42 @@ void NetPlayDialog::UpdateGUI()
{tr("Player"), tr("Game Status"), tr("Ping"), tr("Mapping"), tr("Revision")});
m_players_list->setRowCount(m_player_count);
- static const std::map<NetPlay::SyncIdentifierComparison, QString> player_status{
- {NetPlay::SyncIdentifierComparison::SameGame, tr("OK")},
- {NetPlay::SyncIdentifierComparison::DifferentVersion, tr("Wrong Version")},
- {NetPlay::SyncIdentifierComparison::DifferentGame, tr("Not Found")},
- };
+ static const std::map<NetPlay::SyncIdentifierComparison, std::pair<QString, QString>>
+ player_status{
+ {NetPlay::SyncIdentifierComparison::SameGame, {tr("OK"), tr("OK")}},
+ {NetPlay::SyncIdentifierComparison::DifferentHash,
+ {tr("Wrong hash"),
+ tr("Game file has a different hash; right-click it, select Properties, switch to the "
+ "Verify tab, and select Verify Integrity to check the hash")}},
+ {NetPlay::SyncIdentifierComparison::DifferentDiscNumber,
+ {tr("Wrong disc number"), tr("Game has a different disc number")}},
+ {NetPlay::SyncIdentifierComparison::DifferentRevision,
+ {tr("Wrong revision"), tr("Game has a different revision")}},
+ {NetPlay::SyncIdentifierComparison::DifferentRegion,
+ {tr("Wrong region"), tr("Game region does not match")}},
+ {NetPlay::SyncIdentifierComparison::DifferentGame,
+ {tr("Not found"), tr("No matching game was found")}},
+ };
for (int i = 0; i < m_player_count; i++)
{
const auto* p = players[i];
auto* name_item = new QTableWidgetItem(QString::fromStdString(p->name));
- auto* status_item = new QTableWidgetItem(player_status.count(p->game_status) ?
- player_status.at(p->game_status) :
- QStringLiteral("?"));
+ name_item->setToolTip(name_item->text());
+ const auto& status_info = player_status.count(p->game_status) ?
+ player_status.at(p->game_status) :
+ std::make_pair(QStringLiteral("?"), QStringLiteral("?"));
+ auto* status_item = new QTableWidgetItem(status_info.first);
+ status_item->setToolTip(status_info.second);
auto* ping_item = new QTableWidgetItem(QStringLiteral("%1 ms").arg(p->ping));
+ ping_item->setToolTip(ping_item->text());
auto* mapping_item =
new QTableWidgetItem(QString::fromStdString(NetPlay::GetPlayerMappingString(
p->pid, client->GetPadMapping(), client->GetGBAConfig(), client->GetWiimoteMapping())));
+ mapping_item->setToolTip(mapping_item->text());
auto* revision_item = new QTableWidgetItem(QString::fromStdString(p->revision));
+ revision_item->setToolTip(revision_item->text());
for (auto* item : {name_item, status_item, ping_item, mapping_item, revision_item})
{