Show addon identity for live installation

This commit is contained in:
Benau 2019-12-04 00:47:54 +08:00
parent 0726f01808
commit 5dd208fdca

View File

@ -352,6 +352,13 @@ void NetworkingLobby::onUpdate(float delta)
Track* t = cl->getPlayingTrack();
if (t)
current_track = t->getName();
// Show addon identity so player can install it live in lobby
if (current_track.empty())
{
std::string track_id = cl->getPlayingTrackIdent();
if (StringUtils::startsWith(track_id, "addon_"))
current_track = track_id.substr(6).c_str();
}
if (progress.first != std::numeric_limits<uint32_t>::max())
{
if (!current_track.empty())