mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Add fetching favorites info
This commit is contained in:
parent
9eeb7dffa5
commit
cb54ef66d9
|
@ -95,17 +95,18 @@ void CServerBrowser::Set(const NETADDR &Addr, int SetType, int Token, const CSer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/*else if(Type == SET_FAV_ADD)
|
case SET_FAV_ADD:
|
||||||
{
|
{
|
||||||
if(m_ServerlistType != IServerBrowser::TYPE_FAVORITES)
|
if(!(m_RefreshFlags&IServerBrowser::REFRESHFLAG_INTERNET))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!Find(Addr))
|
if(!Find(IServerBrowser::TYPE_INTERNET, Addr))
|
||||||
{
|
{
|
||||||
pEntry = Add(Addr);
|
pEntry = Add(IServerBrowser::TYPE_INTERNET, Addr);
|
||||||
QueueRequest(pEntry);
|
QueueRequest(pEntry);
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
break;
|
||||||
case SET_TOKEN:
|
case SET_TOKEN:
|
||||||
{
|
{
|
||||||
int Type;
|
int Type;
|
||||||
|
@ -291,13 +292,10 @@ void CServerBrowser::Refresh(int RefreshFlags)
|
||||||
m_NumRequests = 0;
|
m_NumRequests = 0;
|
||||||
|
|
||||||
m_NeedRefresh = 1;
|
m_NeedRefresh = 1;
|
||||||
|
for(int i = 0; i < m_ServerBrowserFavorites.m_NumFavoriteServers; i++)
|
||||||
|
if(m_ServerBrowserFavorites.m_aFavoriteServers[i].m_State >= CServerBrowserFavorites::FAVSTATE_ADDR)
|
||||||
|
Set(m_ServerBrowserFavorites.m_aFavoriteServers[i].m_Addr, SET_FAV_ADD, -1, 0);
|
||||||
}
|
}
|
||||||
/*else if(Type == IServerBrowser::TYPE_FAVORITES)
|
|
||||||
{
|
|
||||||
for(int i = 0; i < m_NumFavoriteServers; i++)
|
|
||||||
if(m_aFavoriteServers[i].m_State >= FAVSTATE_ADDR)
|
|
||||||
Set(m_aFavoriteServers[i].m_Addr, SET_FAV_ADD, -1, 0);
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int CServerBrowser::LoadingProgression() const
|
int CServerBrowser::LoadingProgression() const
|
||||||
|
|
Loading…
Reference in a new issue