mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Misc. Container Find Changes
This commit is contained in:
parent
9fa4eb9aab
commit
de1c47a701
@ -515,7 +515,7 @@ void NetPlayClient::OnPlayerLeave(sf::Packet& packet)
|
|||||||
const auto& player = it->second;
|
const auto& player = it->second;
|
||||||
INFO_LOG_FMT(NETPLAY, "Player {} ({}) left", player.name, pid);
|
INFO_LOG_FMT(NETPLAY, "Player {} ({}) left", player.name, pid);
|
||||||
m_dialog->OnPlayerDisconnect(player.name);
|
m_dialog->OnPlayerDisconnect(player.name);
|
||||||
m_players.erase(m_players.find(pid));
|
m_players.erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_dialog->Update();
|
m_dialog->Update();
|
||||||
|
@ -102,7 +102,7 @@ protected:
|
|||||||
|
|
||||||
for (auto remove_prefix : {"BTN_", "KEY_"})
|
for (auto remove_prefix : {"BTN_", "KEY_"})
|
||||||
{
|
{
|
||||||
if (name.find(remove_prefix) == 0)
|
if (name.starts_with(remove_prefix))
|
||||||
return std::string(name.substr(std::strlen(remove_prefix)));
|
return std::string(name.substr(std::strlen(remove_prefix)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user