mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
NetPlay: Delete NetPlayClient::GetPlayerList
It's been unused since DolphinWX was removed in 44b22c90df
. Prior to that, it was used in Source/Core/DolphinWX/NetPlay/NetWindow.cpp. But the new equivalent in Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp uses NetPlayClient::GetPlayers instead. Stringifying (or creating a table, as is done now) should be done by the UI in any case.
This commit is contained in:
parent
b6ad5c5902
commit
ea9b0bff08
@ -1587,49 +1587,6 @@ void NetPlayClient::ThreadFunc()
|
||||
return;
|
||||
}
|
||||
|
||||
// called from ---GUI--- thread
|
||||
void NetPlayClient::GetPlayerList(std::string& list, std::vector<int>& pid_list)
|
||||
{
|
||||
std::lock_guard lkp(m_crit.players);
|
||||
|
||||
std::ostringstream ss;
|
||||
|
||||
for (const auto& entry : m_players)
|
||||
{
|
||||
const Player& player = entry.second;
|
||||
ss << player.name << "[" << static_cast<int>(player.pid) << "] : " << player.revision << " | "
|
||||
<< GetPlayerMappingString(player.pid, m_pad_map, m_gba_config, m_wiimote_map) << " |\n";
|
||||
|
||||
ss << "Ping: " << player.ping << "ms\n";
|
||||
ss << "Status: ";
|
||||
|
||||
switch (player.game_status)
|
||||
{
|
||||
case SyncIdentifierComparison::SameGame:
|
||||
ss << "ready";
|
||||
break;
|
||||
|
||||
case SyncIdentifierComparison::DifferentVersion:
|
||||
ss << "wrong game version";
|
||||
break;
|
||||
|
||||
case SyncIdentifierComparison::DifferentGame:
|
||||
ss << "game missing";
|
||||
break;
|
||||
|
||||
default:
|
||||
ss << "unknown";
|
||||
break;
|
||||
}
|
||||
|
||||
ss << "\n\n";
|
||||
|
||||
pid_list.push_back(player.pid);
|
||||
}
|
||||
|
||||
list = ss.str();
|
||||
}
|
||||
|
||||
// called from ---GUI--- thread
|
||||
std::vector<const Player*> NetPlayClient::GetPlayers()
|
||||
{
|
||||
|
@ -111,7 +111,6 @@ public:
|
||||
const std::string& name, const NetTraversalConfig& traversal_config);
|
||||
~NetPlayClient();
|
||||
|
||||
void GetPlayerList(std::string& list, std::vector<int>& pid_list);
|
||||
std::vector<const Player*> GetPlayers();
|
||||
const NetSettings& GetNetSettings() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user