diff options
| author | JosJuice <josjuice@gmail.com> | 2020-06-10 18:49:22 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-08-02 22:46:53 +0200 |
| commit | 5cad82137d496328ce8e3ea6e5edf9dac524a11a (patch) | |
| tree | cec56d8bd6dec4840811fff543c311feccf0fbf6 /Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | |
| parent | a41166bb376820389d9863ce23cf6fab20cb3b5f (diff) | |
Allow translations and custom names in GameFile::GetNetPlayName
There is no longer any major reason for why this function would
need to return the same result for all players.
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp index 5f51f4a7cd..adcfa3faf3 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp @@ -363,7 +363,8 @@ void NetPlaySetupDialog::PopulateGameList() { std::shared_ptr<const UICommon::GameFile> game = m_game_list_model->GetGameFile(i); - auto* item = new QListWidgetItem(QString::fromStdString(game->GetNetPlayName())); + auto* item = + new QListWidgetItem(QString::fromStdString(m_game_list_model->GetNetPlayName(*game))); item->setData(Qt::UserRole, QVariant::fromValue(std::move(game))); m_host_games->addItem(item); } |
