mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user